Re: Pathnames derived from variables
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.