• 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: Nigel Smith <email@hidden>
  • Date: Fri, 14 Feb 2003 13:31:44 +0000

On 12/2/03 13:59, "email@hidden" <email@hidden>
wrote:

> 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?

Are you *sure* you are getting the path to the file correct at the rename
stage?

In your first post you had:
set filename to "Mac HD:Desktop Folder:pdf:in:Annual_data"&".ps" as text

ie. you were trying to save the .ps file to a folder called "in" in a folder
called "pdf" on the Desktop.

If you have now set FileMaker to print automatically to this place, using
"Print without dialog" (or whatever the checkbox is called) in the
ScriptMaker step to use a previous setting, then you files are being created
in "Mac HD:Desktop Folder:pdf:"

But the AppleScript fragment you posted included the lines:
Set theKnownPath to "PDF:Tool Bar Dock.pdf"
tell application "Finder" to set the name of file theKnownPath <BREAK>
to newName & ".pdf"

That is, you are trying to rename "PDF:Tool Bar Dock.pdf"

Try setting theKnownPath to "Mac HD:Desktop Folder:pdf:in:Tool Bar Dock.pdf"

An easy way to check which part of the script is breaking would be to change
the renaming line from
tell application "Finder" to set the name of file theKnownPath <BREAK>
to newName & ".pdf"
to
tell application "Finder" to set the name of (choose file) <BREAK>
to newName & ".pdf"

That way, you get the chance to pick the file yourself. If the script still
fails it is some other problem but, if it works, you aren't getting the
correct path to the file you want to rename.

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.

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

  • Prev by Date: Re: 10.2.4 PDF Workflow Feature
  • Next by Date: Re: Printing w/o interaction?
  • 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