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
|