• 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
Re: Pathnames derived from variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pathnames derived from variables


  • Subject: Re: Pathnames derived from variables
  • From: "Robert Seckendorf" <email@hidden>
  • Date: Mon, 11 Dec 2000 12:31:35 -0800

Any words of wisdom about how to extract the value of "text returned" from a
dialog box and supply it to an application as the "filename" parameter in a
open command?? What I have so far doesn't work...
tell application "Finder"
set userInput to display dialog "What file do you want to open?" buttons
{"OK", "Cancel"} ,
default button "OK" default answer ""
set fileRef to a reference to text returned of userInput
tell application "Adobe. Photoshop. 5.5"
activate
open {fileRef} -- This doesn't seem to work
end tell
end tell

Thanks in advance.


  • Prev by Date: Re: Try to quit
  • Next by Date: Re: Pathnames derived from variables
  • Previous by thread: this message sent over ten times
  • Next by thread: Re: Pathnames derived from variables
  • Index(es):
    • Date
    • Thread