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: Philip Aker <email@hidden>
- Date: Wed, 19 Dec 2007 03:04:28 -0800
On 2007-12-17, at 00:14:06, Skeeve wrote:
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?
defaults write ~/Desktop/OwnedFileType.app/Contents/Info
CFBundleDocumentTypes -array-add '{CFBundleTypeExtensions=("mine");}'
You can extend the above to include custom icons for your files if
you like but writing the icon type and including the named .icns file
in the Resources folder of the app.
Most likely, you'll have to restart the Finder (logout) to see the
effect take place.
Do I have to register for an application code(?)? Or is there a way
to do it without that?
No point for droplets or applets. The must have 'aplt' or 'dplt'
creators.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
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