Re: Akua display selector (again)
Re: Akua display selector (again)
- Subject: Re: Akua display selector (again)
- From: email@hidden
- Date: Tue, 27 Mar 2001 22:16:54 EST
On 3/25/01 Laine Lee wrote:
>
It's not broken after all, I think.
>
While it doesn't seem to do what you want in the Finder, put a text file in
>
your Documents folder and try:
>
tell application "SimpleText" -- or whatever (except Finder, I guess)
>
activate
>
display selector from (path to startup disk as string) & ,
>
"Documents:" of type "TEXT" with prompt "Open" for file ,
>
without navigation services and invisibles
>
set mychoice to result
>
open mychoice
>
end tell
Maybe so, but I'm trying to select a folder, not a document. And, if it
matters, it doesn't seem to work in Quark Xpress:
tell application "QuarkXPress"
activate
set thePath to (get file path of document 1)
display selector for folder from thePath with prompt "Pick a folder"
without navigation services
end tell
I was expecting "for folder" to display a "choose folder" dialog, not a
save-as. And the "from thePath" to set the default to whatever directory
contains the current document. Either I'm doing it wrong or both these
functions are broken.