Re: "tell" is opening *classic* QuickTime Player, not OSX version!
Re: "tell" is opening *classic* QuickTime Player, not OSX version!
- Subject: Re: "tell" is opening *classic* QuickTime Player, not OSX version!
- From: Emmanuel <email@hidden>
- Date: Thu, 20 Mar 2003 09:36:21 +0100
At 3:08 PM -0800 19/03/03, Dan Wood wrote:
Never mind, my fix didn't work after all! At least, not consistently.
I'm having trouble figuring out how to get the path from the Finder
specifically. I see "application file" in Finder's dictionary, but
it doesn't seem to have any kind of path property that I can then
pass along to "tell"
Any ideas?
I wish that Andrew's suggestion works for you.
If it does not, here is what I use:
--------------------------
on AppName(theCreator)
tell application "Finder"
set thePath to (application file id theCreator) as alias
set theTextPath to thePath as text
if theCreator is not in (get creator type of every
process) then open thePath
end tell
return theTextPath
-- return displayed name of (info for thePath)
end AppName
--------------------------
and:
--------------------------
set theApp to AppName
tell application theApp
<<class blah>> <<class blah>>
end
--------------------------
But you've got to program with raw codes.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.