paul_apted Posted November 24, 2003 Posted November 24, 2003 hello, I have a Database that worked perfectly well in Jaguar ,but alas in Panther it doesn't work .The Script basically reveal's a file in the finder that a record is linked to using the "filepathtext" field ( i set "Filepathtext to Filepathglobal in a script step before this applescript) Now the script goes to the finder and then announces that the file cannot be found ,even if it does. i believe it is the line "if myfile exists then" that is the problem ,if i remove this line and therefore disable the failure dialog the script works fine... any ideas .. here is the script Paul Apted tell Application "FileMaker pro" Set Myfile to cell "finderpathglobal" end tell tell Application "Finder" activate if myfile exists then reveal file myfile else display Dialog "NO SOUNDFILE FOUND Check Media is Online or Record is Properly Linked" buttons{"OK"} default button "OK" end if if button returned of result is equal to "OK" then Tell Application "Filemaker Pro" Activate end tell end tell
BobWeaver Posted November 25, 2003 Posted November 25, 2003 What happens if you change: "If myfile exists" to "If File myfile exists" ?
paul_apted Posted November 25, 2003 Author Posted November 25, 2003 then it works.......... I hate it when that happens Many thanks ,although i could have sworn i had tried that Paul
Recommended Posts
This topic is 7671 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