• 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: wildcard for directory selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >wildcard for directory selection (From: Matthew Galaher <email@hidden>)

  • Prev by Date: Re: Any trigonometry wizards out there?
  • Next by Date: Re: wildcard for directory selection
  • Previous by thread: wildcard for directory selection
  • Next by thread: Re: wildcard for directory selection
  • Index(es):
    • Date
    • Thread