OS X: Coercing Finder's Item Reference into String
OS X: Coercing Finder's Item Reference into String
- Subject: OS X: Coercing Finder's Item Reference into String
- From: cris <email@hidden>
- Date: Mon, 13 May 2002 19:11:17 +0200
I want open via script the Finder's selection using Script Debugger as
application.
'open <selection> using <app>' seems to need a string as path to the
selection. The Finder gives me only a reference and I cannot coerce it into
a string. This is what I have tried so far:
tell application "Finder"
set TheAppRef to (application file id "asDB" as string)
selection
set TheSelection to (item 1 of result) -- 'selection' does not work in
this line
--POSIX path of TheSelection
--TheSelection as record
--set TheSelection to item 4 of result
--TheSelection as alias
--path to TheSelection
open TheSelection using TheAppRef
end tell
Any ideas?
Greetings
cris :-)
_______________________________________________
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.