Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

'wild cards' in applescript 'select file' statements


This topic is 6029 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

is there a way to use 'wild cards', e.g., * or @, in the file name of a 'select file' statement for the finder?

If there files

a1

a2

a3

a4

in a folder, I would like to be able select all files starting with 'a' (a* maybe) but i can't seem find a way to do that.

Posted

This is not really a filemaker question is it? But I can hint you to an approach:

http://www.macosxhints.com/article.php?story=20060412014652826

--sd

Posted

Well, that's a hint all right. How about something like:

tell application "Finder"

set myFolder to (choose folder with prompt "Select a folder")

select (files of myFolder whose name begins with "a")

end tell

This topic is 6029 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.