• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to associate a file with a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to associate a file with a script
      • From: Skeeve <email@hidden>
References: 
 >How to associate a file with a script (From: Skeeve <email@hidden>)

  • Prev by Date: Re: remember in keychain
  • Next by Date: Re: Dumb Finder scripting question
  • Previous by thread: Re: How to associate a file with a script
  • Next by thread: Re: How to associate a file with a script
  • Index(es):
    • Date
    • Thread