[Ham-Mac] Help with filename for AppleScript Autostart
Dave Wright
hfradiopro at gmail.com
Fri Jan 29 14:29:01 EST 2016
Richard,
I took a quick look at it and and I don’t think it will work using Applescript. Accessing the file from the command line is one thing, but OS X expects to open the “.app” Application; so trying to call the actual application from within the Fldigi-3.23.07/Contents/MacOS/ bundle may not work.
To illustrate this, go to the Terminal and type cd /
Then type "./Applications/fldigi*/Contents/MacOS/fldigi" (make sure you include the period at the beginning, and leave off the quotes)
However, to the best of my knowledge, this won’t work using Applescript as it will only call “Applications”; again, to the best of my knowledge.
You might want to create a simple bash script that opens it.
So, a bash script might look like:
#!/bin/sh
./Applications/fldigi*/Contents/MacOS/fldigi
./Applications/flrig*/Contents/MacOS/flrig
Save it somewhere, make it executable (chmod +x script name) and then click on it to run it (Or create an alias that you can drag to the Applications folder.
I use Bash scripts to automate my CTY file, LOTW and eQSL user file updates for both Fldigi and WSJT-X, as well as to auto-backup my logbooks. They are VERY handy and simple to work with.
Just my thought.
--
Dave Wright
K3DCW
“Real radio bounces off the sky"
On 29 January 2016 at 14:08:31, Richard Kriss (aa5vu at att.net) wrote:
There were several comments in response to my posting about an AppleScript alternative to Autostart and the bottom line of all comments was to drop the app version numbers in the AppleScript. I tried that and it did not work for me. I could use some specifics.
I don’t know how to write an AppleScript to point to the fldigi icon under fldigi-3.23.07/Contents/MacOS/
Dick AA5VU
______________________________________________________________
Ham-Mac mailing list
Home: http://mailman.qth.net/mailman/listinfo/ham-mac
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Ham-Mac at mailman.qth.net
This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
More information about the Ham-Mac
mailing list