Re: How to associate a file with a script
Re: How to associate a file with a script
- Subject: Re: How to associate a file with a script
- From: Skeeve <email@hidden>
- Date: Mon, 17 Dec 2007 17:06:43 +0100
Skeeve wrote:
Hi!
I want applescript to create a file which is the associated with
another applescript.
So if you double click it or simply "open" it in Finder or from shell,
the associated applescript shall be started.
How do I achieve that?
So now I found that
defaults read com.apple.LaunchServices LSHandlers
lists all applications registered. Here I can possibly add my own
filename extension. Question is: Are there standard ways to do it? Do I
have to read what's set now, append my own entry and write it back with
defaults write? Or is there an Applescript API? Do I have to restart
anything after I've added my entry?
-- Skeeve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden