Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

krema2ren

macrumors newbie
Original poster
Feb 17, 2010
1
0
Hi

I have the following problem. I have a jar file which contains and app, that I would like to assoicate with a specific file extension (*.bla) in Finder. I've created a bash shell script that can open the app and a *.bla file in terminal by
Code:
./blaApp.sh foo.bla
I've tried to make an applescript that uses my blaApp.sh script, but haven't succeded. Do any of you clever guys know how I should do? Here is my script
Code:
on run argv
	do shell script "/Users/denielse/tools/blaApp.sh " & item 1 of argv
end run

I've saved the script as an application, so it should be possible to use 'Open with' in Finder. I get a can't make item 1 to unicode error, when I execute it from terminal like
Code:
/Applications/blaApp.app foo.bla

Hope you can help....
- dennis

- Dennis
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.