• 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
OS X: Coercing Finder's Item Reference into String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Appending a list to a list and getting one list.
  • Next by Date: Re: 'Concatenate' from a list
  • Previous by thread: Re: Appending a list to a list and getting one list.
  • Next by thread: Re: OS X: Coercing Finder's Item Reference into String
  • Index(es):
    • Date
    • Thread