Hello all.
Just a quick question…
I have a helper app within my main application (just to add a sort of multithreading alarm system (the on idle handler brings on too many errors)) how would I access it?
Hello all.
Just a quick question…
I have a helper app within my main application (just to add a sort of multithreading alarm system (the on idle handler brings on too many errors)) how would I access it?
Nevermind. I went over to Jon’s Little Page of Applescripts, grabbed the code from the “Find App Path from Creator Code” script and came up with this:
set the_app to my path_from_cc("myap")
if the_app is not equal to false then
tell application (the_app & "contents:resources:My Helper App.app:"
activate
end tell
end if
on path_from_cc(the_cc)
if length of the_cc is not 4 then return false
tell application "Finder"
set the_process to (every process whose creator type is (the_cc as type class)) as list
if the_process = {} then
if exists application file id the_cc then
return ((application file id the_cc) as alias) as string
else
return false
end if
else
return ((file of item 1 of the_process) as alias) as string
end if
end tell
end path_from_cc