Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Wrong Copy of Pages Used

Wrong Copy of Pages Used
Thread Tools
TomMcIn
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Feb 27, 2012, 02:37 AM
 
I have an applescript that formats a Pages document. Normally I start with the Pages application on the System Disk and all works well. On occasion the Applescript starts using a backup copy of Pages on another disk and the script fails because this copy of Pages does not have a document to format. Is there some way to force the Tell command to reference an application on a specific disk?

The tell command used is tell application "Pages"
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Feb 27, 2012, 04:20 AM
 
No, not easily. I suggest that you make a zip archive of the backup application so the script only has one app to choose from.
The new Mac Pro has up to 30 MB of cache inside the processor itself. That's more than the HD in my first Mac. Somehow I'm still running out of space.
     
TomMcIn  (op)
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Feb 27, 2012, 12:02 PM
 
The wrong copy is being picked up from a copy of my operating system disk I made before upgrading to Lion. Will Zip that copy. Also have a disk partition that keeps a copy of my system disk that gets updated/cloned every two days. Could add a script to zip the copy if that copy becomes a problem.
     
pottymouth
Dedicated MacNNer
Join Date: Nov 2003
Status: Offline
Reply With Quote
Mar 2, 2012, 07:02 PM
 
Originally Posted by TomMcIn View Post
The wrong copy is being picked up from a copy of my operating system disk I made before upgrading to Lion. Will Zip that copy. Also have a disk partition that keeps a copy of my system disk that gets updated/cloned every two days. Could add a script to zip the copy if that copy becomes a problem.
A couple notes:
Do you see this problem if Pages is already running? Or only when you run the script without pages running?
Any particular reason youaren't using Time Machine for your backups? TM backs up to a disk image, so you wouldn't have this problem.
A backup to a different partition isn't going to help you one bit when the disk fails...or maybe that's not really what you meant.
     
TomMcIn  (op)
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Mar 2, 2012, 08:59 PM
 
In all the cases, I had my main copy of Pages running on a document I wanted the script to reformat. Instead, sometime after each reboot, the script would run a copy of Pages from a system disk I had created and tested, just prior to updating my main system disk to Lion.
I also run a copy of TimeMachine, just use the extra backups as insurance. I tend to consider TimeMachine as a way of getting old versions of a document.
I have three physical disks. Time Machine and the backup partitions are kept on separate disks from the main system and document disks. If a disk fails, the backups are on another disk.

After zipping the copy of Pages on the preLion backup, I have not seen the problem again.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:47 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,