[Ham-Mac] Help with filename for AppleScript Autostart

Pete Golian pjgolian at gmail.com
Fri Jan 29 14:49:38 EST 2016


Give this applescript a try.

Pete 
KB3WTP


-- assume fldigi is in the Applications Folder
set thePath to path to applications folder

tell application "System Events"
	set filelist to every file of thePath whose name starts with "fldigi"
	if filelist is not {} then
		-- if there are multiple fldigi found, use the last one in the list
		set fldigiapp to last item of filelist
		do shell script "open -a " & name of fldigiapp
	else
		-- no files found
	end if
end tell



> On Jan 29, 2016, at 2:08 PM, 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