• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting FMP to print to .ps via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Getting FMP to print to .ps via AppleScript
      • From: Nigel Smith <email@hidden>
References: 
 >Re: Getting FMP to print to .ps via AppleScript (From: Nigel Smith <email@hidden>)

  • Prev by Date: Re: search and replace in tex-edit
  • Next by Date: Re: Non Compulsory Parameters & a Null Constant ?
  • Previous by thread: Re: Getting FMP to print to .ps via AppleScript
  • Next by thread: Re: Getting FMP to print to .ps via AppleScript
  • Index(es):
    • Date
    • Thread