Re: Setting 'open with' via AS?
Re: Setting 'open with' via AS?
- Subject: Re: Setting 'open with' via AS?
- From: Doug McNutt <email@hidden>
- Date: Wed, 7 Dec 2005 11:04:16 -0700
At 02:18 -0500 12/7/05, Jim Witte wrote:
Can you set the 'open with application' setting via AS? OSX has a
nasty habit of not doing this right when a Classic app is selected
(it won't 'change all' correctly). I don't see anything in the
Finder dictionary though..
If you're into command line thingies
open -a application pathtofile
works for me but it usually appears in a BBEdit worksheet.
Application can be a short name or a full POSIX path. Pathtofile
needs to be a POSIX path and do shell script will probably require
the usual "quoted form of' construct. I don't think it can be an
AppleScript alias sometimes called a "file".
Be careful with the" open with application" in Finder. If you don't
"change all" but do say "always" you will increase the file size by
some 40 kB to accommodate the icons of the selected application in
the resource fork of the file.
SetFile -c CODE -t TYPE
is another way, at least for a while, and always for classic, to
change the application that will be used for a double click. You'll
have to do some research to discover the assigned type and creator
codes for the application you want. All classic apps have them and
they are always exactly four case-sensitive characters.
GetFileInfo pathtoapp
from Terminal will tell you what they are. FileBuddy once did the same thing.
The file info tools are delivered in /Developer/tools but they will
work alone and there is probably a way to acquire them without a full
load of developer tools.
--
--> Science is the business of discovering and codifying the rules
and methods employed by the Intelligent Designer. Religions provide
myths to mollify the anxiety experienced by those who choose not to
participate. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden