Jump to content

reveal file in finder


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

Recommended Posts

hopefully this should be easy ..

i have database that plays a soundfile via quicktime using a script which basically uses a field as the filepath. now all i want to do is write a script which shows that file in the finder ,basically a "reveal file" function .

any ideas

thanks

paul apted

Link to comment
Share on other sites

  • 9 months later...

FYI - I was going to ask how to handle the quote and then I came up with this. Note 'qut' is a global field with one straight quote in it. And the substitute function to help keep it clean. Also I found that quotes are required around the path (osX).

Substitute(

"tell application ^Finder^

activate

reveal ^" & SourcePath & "^

end tell",

"^", qut)

Link to comment
Share on other sites

This topic is 7632 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.