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

  • Prev by Date: Re: How to associate a file with a script
  • Next by Date: trouble with weekday names
  • 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