• 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
Re: File check...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File check...


  • Subject: Re: File check...
  • From: Ashwin Row <email@hidden>
  • Date: Wed, 24 Sep 2008 15:05:38 +0530

Allo Alex 

It worked.

Here is the new code below.

Merci.

Ashwin Row.


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 "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

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
References: 
 >File check... (From: Ashwin Row <email@hidden>)
 >Re: File check... (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: File check...
  • Next by Date: Instructions after file check...
  • Previous by thread: Re: File check...
  • Next by thread: Changing permissions on a volume
  • Index(es):
    • Date
    • Thread