Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

File creation using Applescript

Featured Replies

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

  • 4 weeks later...

I just got my hands on Troi File plug-in. It takes the pain out of file creation. You should take a look.

Craig

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:""

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.