Newbies jpatrick Posted January 17, 2007 Newbies Posted January 17, 2007 Trying to script creation of new PDF files dynamically, having problems on one client running OS 10.3.9 (works fine on 10.4 and above) I’ve boiled it down to the fact that this applescript step: /* applescript steps to execute */ "property folder_name: " & Trim(CHARTS::financial_number) & "¶" & "tell application "Finder"" & "¶" & "set pdf_folder to (desktop as string) & "PDF"" & "¶" & "make folder at folder pdf_folder with properties {name:folder_name}¶" & "end tell" works fine on OS 10.4, but not, apparently, on 10.3.9 (on 10.3.9 it creates untitled folders, rather than one named as the financial number), so that when the next step tries to save the PDF into a folder named by the same financial number, it can’t, because no such folder exists. Works fine if I just create PDFs in folder named PDF rather than creating folder names dynamically. Any suggestions as to how to use applescript better so that it works in 10.3.9?
cmulgrum Posted February 15, 2007 Posted February 15, 2007 I just got my hands on Troi File plug-in. It takes the pain out of file creation. You should take a look. Craig
Fenton Posted February 15, 2007 Posted February 15, 2007 You forgot the ":" at the end of PDF. Folder paths end in ":". Tiger let it slide. Try this: "set pdf_folder to (desktop as string) & "PDF:""
Recommended Posts
This topic is 6492 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now