• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Instructions after file check...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Instructions after file check...


  • Subject: Instructions after file check...
  • From: Ashwin Row <email@hidden>
  • Date: Wed, 24 Sep 2008 16:02:09 +0530

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)
Email: ashwin@fortuneinfotech.com
          ashwinrow@mac.com
------------------------------------------------------     
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

  • Follow-Ups:
    • Re: Instructions after file check...
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: File check...
  • Next by Date: Re: Instructions after file check...
  • Previous by thread: Re: Changing permissions on a volume
  • Next by thread: Re: Instructions after file check...
  • Index(es):
    • Date
    • Thread