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

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

Recommended Posts

Posted

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

  • 9 months later...
Posted

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)

Posted

You don't really need to worry about handling the quote. I normally put the whole applescript (quotes and all) into a global field (gScriptCode) in this kind of "merge field" format:

tell application "Finder"

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