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.

Do Shell script as calc

Featured Replies

i am trying to automate creating and saving a pdf file, switching from printer to apple internal modem and sending a fax to each recipient on my list. Creating the pdf is no problem but I cant get filemaker to accept my calculated Apple script. I know the script syntax works Ok as i can run it from terminal. When i paste the script into filemaker as a scipt this works, however when i try and calulate the script so i can change the recipients fax no it generates a -2740 error. List below is the working applescript and the calculation. I think the problem is centred round haveing to use quote in the calc.

Applescript

"do shell script lp -d Internal_Modem -o phone=01539552186~/Desktop/1.pdf"

Calculated Applescipt

"do shell script" & " lp -d Internal_Modem -o phone=" & faxtest::Fax No & " ~/Desktop/1.pdf"

The string needs escape before each "

--sd

What Søren means is escape the quotes you want to appear in the result, ie., after "do shell script" (which are not correct in your AppleScript example).

"do shell script "lp -d Internal_Modem -o phone=" & faxtest::Fax No & " ~/Desktop/1.pdf""

produces

do shell script "lp -d Internal_Modem -o phone=6196921539 ~/Desktop/1.pdf"

  • Author

Thanks for that. Will give it a try

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.