Re: Changing "open with" (Mac Finder) for certain files
Re: Changing "open with" (Mac Finder) for certain files
- Subject: Re: Changing "open with" (Mac Finder) for certain files
- From: Francis Nugent Dixon <email@hidden>
- Date: Thu, 21 Oct 2010 19:03:04 +0200
Hi from Beautiful Brittany,
Thanks to all for the suggestions, especially to Brian
(best regards to "down under" from "up over")
I will use his solution for another "need".
I had to solve my problem in AppleScript, because I build
and control all of my pdf files with a LiveCode/Revolution
stack (written in Transcript), and I know which ones I want
to open with Adobe Reader, Adobe Acrobat Pro or Skim.
I finally worked out the correct solution (all depends on how
you ask questions to Google).
In my LiveCode/Revolution stack, the AppleScript code is in a
field called "MyScript", and I build the file list and present
the file names, one at a time to a loop :
1 - Insert the full file path into line 1 of the script
2 - do field "MyScript" as AppleScript (a Transcript command)
"MyScript" contains an Apple Script, but command must be
primed before execution ........ :
-----------------------------------------------------------------
set MyFilePath to "...... xxxxxxx ..........."
set MyAppName to (path to application "SKIM") as text
tell application "System Events"
set default application of disk item MyFilePath to MyAppName
end tell
-----------------------------------------------------------------
Now all I need to do is find the commands to change the
application icon.
Sigh !! ... Progress is just a series of monumental "****-ups".
-Francis
_______________________________________________
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