• 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
Running an applescript from a Filemaker Advanced file (Addressing Problems)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running an applescript from a Filemaker Advanced file (Addressing Problems)


  • Subject: Running an applescript from a Filemaker Advanced file (Addressing Problems)
  • From: Peter Baxter <email@hidden>
  • Date: Thu, 7 Dec 2006 05:22:22 +1100

I am working with a printing system that creates a series of PDF files from a variety of layouts in Filemaker Pro.  The script I wrote works perfectly when installed locally on a computer, however I wish to use this script when the file is served by Filemaker Pro Advanced.
The address needs to be changed as the computer accessing the script is not the local computer and I keep getting it wrong.  Can anyone help me correctly address the script to refer to any computer that accesses the script via Filemaker Server Advanced?


tell application "Finder"
try
--renames the result of joining the files to the studentCode
set Reports_print_Folder to folder "ReportsPrint" of folder "ReportSetup" of folder "LocalReports" of folder "Applications" of startup disk
set new_name to the clipboard as string
set file_count to the number of items in Reports_print_Folder
set target_document to file "Document.pdf" of folder "ReportsPrint" of folder "ReportSetup" of folder "LocalReports" of folder "Applications" of startup disk
set the name of file "Document.pdf" of folder Reports_print_Folder to new_name & ".pdf"
on error
--gives a unique name to the file
set the name of target_document to new_name & "_" & file_count & ".pdf"
end try


end tell


Peter Baxter
email@hidden


iChat email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Running an applescript from a Filemaker Advanced file (Addressing Problems)
      • From: Bruce Robertson <email@hidden>
    • Re: Running an applescript from a Filemaker Advanced file (Addressing Problems)
      • From: Malcolm Fitzgerald <email@hidden>
  • Prev by Date: Re: Importing/parsing CSV files
  • Next by Date: Re: Odd Finder Behavior
  • Previous by thread: Re: Importing/parsing CSV files
  • Next by thread: Re: Running an applescript from a Filemaker Advanced file (Addressing Problems)
  • Index(es):
    • Date
    • Thread