Re: wildcard for directory selection
Re: wildcard for directory selection
- Subject: Re: wildcard for directory selection
- From: John Delacour <email@hidden>
- Date: Tue, 8 Jul 2003 18:26:57 +0100
- Mac-eudora-version: 6.0a26
At 8:49 am -0700 8/7/03, Matthew Galaher wrote:
I wish to be able to type the first x number of characters in a file
name in a dialog, and then have the finder select/open the first
match. So if I have directories named:
Volumes/Production/client/content/0073_foobar
Volumes/Production/client/content/0074_barfoo
Volumes/Production/client/content/0075_foobar
the dilalog would only need '0075' to open directory 0075_foobar
Use the wildcard "*" as in the examples below
set _pattern to "Applic*"
set _dir to quoted form of "/Volumes/dx/"
do shell script "cd " & _dir & "; open " & _pattern
or
do shell script "open " & _dir & _pattern
JD
.
_______________________________________________
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.