Jump to content
Server Maintenance This Week. ×

File creation using Applescript


This topic is 6295 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

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?

Link to comment
Share on other sites

  • 4 weeks later...

This topic is 6295 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.