So I have this small bundle with applescript made, and it even seems to work as it should. However, it appearently doesnt open my files when it is asked to via the open
utility. It works though when I use the finder. Can anybody help me? My code is this:
on open theFile
set runner to ((path to me)'s POSIX path) & "Contents/MacOS/desk_parse"
-- We need to escape some stuff here.
-- Expected output: '/path/to/bundle.app//Contents/MacOS/dsk_parse' '/path/to/app.desk'
do shell script "'" & runner & "' '" & (POSIX path of theFile) & "' &"
--display dialog runner
end open
Again, it works from finder, but not from command line like:
open "theFile.ext"
My Info.plist rads and also accepts the extension I saved into it. So that association actualy works.