Re: Getting FMP to print to .ps via AppleScript
Re: Getting FMP to print to .ps via AppleScript
- Subject: Re: Getting FMP to print to .ps via AppleScript
- From: email@hidden
- Date: Wed, 12 Feb 2003 13:59:56 +0000
Thanks, but I have tried both of these, using a pause, then (when
someone told me) a looping wait script, but I still can't get the
file to rename. The script gets the name from the FMP field,
highlights the file name in the Finder, then stops and gives one of
the error messages mentioned below.
I am trying to rename in OS9.2.2 Would I be using an OSX script?
Also, would the problem be sorted if I tried to rename only part of
the name, for example the bit before the .ps or .pdf suffix?
Thanks for any help
Oz
At 13:11 +0000 12/2/03, Nigel Smith wrote:
On 10/2/03 19:57, "email@hidden" <email@hidden>
wrote:
Finder got an error: Can't set file "PDF:Tool Bar Dock.pdf" to
"Annual Data-1.pdf". [Error -10006}.
In Script Editor, +set the name of theknownPath to newName & ".pdf";
is highlighted when the error message displays.
Error -10006 is on OSA error, "An object cannot be set in a container."
A guess, but has the printing completed before you try and rename the file?
Try sticking in a big delay beofre you do the rename.
Might also be worth splitting the script in two for testing purposes, so you
can run the first half and check the PDF arrives where you think, then run
the second half to make sure the renaming is going properly.
HTH,
Nigel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.