paul_apted Posted November 29, 2002 Posted November 29, 2002 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
BobWeaver Posted November 30, 2002 Posted November 30, 2002 tell application "Finder" activate reveal myfilepath end tell
rivet Posted September 3, 2003 Posted September 3, 2003 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)
BobWeaver Posted September 3, 2003 Posted September 3, 2003 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"
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now