File check...
File check...
- Subject: File check...
- From: Ashwin Row <email@hidden>
- Date: Wed, 24 Sep 2008 12:51:19 +0530
Hi I'm using the following code but the part that checks if a file exists or not and it always returns true. Please advise. Also I'm having issues with using the exists keyword so I am not using that keyword. 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 (POSIX path of ("/Applications/eShox/" & abc)) try get theFolder --file checking starts here... return true set abc to "true" display dialog "Path exists!" tell application "FileMaker Pro Advanced" 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" 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. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden