April 17, 20214 yr 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 April 17, 20214 yr by megalomania
April 17, 20214 yr 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:
April 20, 20214 yr 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.
Create an account or sign in to comment