Re: recordable finder
Re: recordable finder
- Subject: Re: recordable finder
- From: John Stewart <email@hidden>
- Date: Tue, 28 Oct 2003 21:22:01 -0500
On 10/28/03 at -0600 Thomas Taylor said this
>
I am trying to find the easiest way to open up an appleworks
>
spreadsheet, for data extraction.
>
>
I came across a thread, that panther's finder is recordable, so I bit.
>
I also was able to create a recordable finder script:
>
>
tell application "Finder"
>
activate
>
set target of Finder window 1 to folder "Documents" of folder "tommyt"
>
of folder "Users" of startup disk
>
>
thats it. It stops here, so how do I open the file that I so
>
desperately want to open?
the following is all on one line -
tell application "Finder" to open alias ((path to "docs" as string) &
"nameofyourfileorfoldergoeshere")
This will open a file (or folder) inside your Documents folder. If you choose
to open a folder, make sure you put a colon after the name. If you want to open
the file with a specific application then add the "using" parameter.
You will find the "open" and "path to" commands in the Standard Additions osax.
John
_______________________________________________
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.