Hi,
In the script below everything works fine exempt for the the instructions that follow after it checks the file alias. It return true and false but fails to store value's in the database. The code to access the database is fine as I have tested them separately. Thanks in advance.
tell application "FileMaker Pro Advanced" activate tell database "Automator" tell record 1 cell "Page Name" --set abc to "hi" set abc to cell "Page Name" display dialog abc end tell end tell end tell
set theFolder to ("/Applications/eShox/" & abc) try get (POSIX file theFolder) as alias --file checking starts here... return true set abc to "true" display dialog "Path exists!" tell application "Opera" activate end tell tell application "FileMaker Pro Advanced"--access database tell database "Automator" tell record 1 set cell "temp" to abc end tell end tell end tell on error display dialog "File does not exist creating new document!" return false set abc to "false" display dialog "Path does not exist!" tell application "FileMaker Pro Advanced"--access database tell database "Automator" tell record 1 set cell "temp" to abc end tell end tell end tell end try
end
Warm Regards, Ashwin Row ------------------------------------------------------ Software Developer | Fortune Infocomm Pvt. Ltd., Mumbai, India. Phone: +91 22 67997970 (Off) | +91 9820566420 (Mobile) ------------------------------------------------------ Your preferred Mac & Win development partner.
|