Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted (edited)

I'm really struggling how to run .command file with passing parameter.

My FM version is FileMaker 18 and MacOS(Mojave).

 

What I have tried is running Perform AppleScript, in its calculation part I coded this

"do shell script \"/Users/admin/Desktop/OrderBook.command PARAMETER\""

 

If I run this script, it keeps saying this error message

/Users/admin/Desktop/OrderBook.command: line 1: OrderBook.csv: Permission denied

 

Is there anyway to solve this?

 

For your information, in my situation, I wanted to run command directly within PerformAppleScript but I gave up because it was really hard to solve syntax error with that.

Thanks in advance

Edited by megalomania
Posted

I have never used a .command file, so I don't know the answer to your question. I would suggest you try to run your AppleScript from the Script Editor application. If you get the same error, then the problem is not Filemaker-related.

 

5 hours ago, megalomania said:

I wanted to run command directly within PerformAppleScript but I gave up because it was really hard to solve syntax error with that.

IMHO, that is something worth pursuing. See if this can help:

 

Posted

You can get a free trial to Script Debugger here: https://latenightsw.com/sd7/download/

I have the beta 8 version which, I believe, won't be unusable until the official version 8 is released. I have found it stable. (Can't locate the link).

Script Debugger really does demystify Applescript. For one, it shows you the path of the 'do shell script'. It also shows errors reported from the shell. I run python from AS and it also gave me the python generated error messages.

 

This topic is 1324 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.