• 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: SOS: AppleScript in FMP5 times out!!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOS: AppleScript in FMP5 times out!!!


  • Subject: Re: SOS: AppleScript in FMP5 times out!!!
  • From: David Dahl <email@hidden>
  • Date: Sun, 4 Mar 2001 14:07:26 -0600

I always have the same problems with applescript...

try:
with timeout of 3000 seconds
tell application "Finder"
activate -- this seems to work better for me... whenever you switch
apps make it --the front application
set new_Folder to duplicate folder the_Folder to folder dest_folder
set name of new_Folder to new_Name
end tell
end timeout

Hanaan Rosenthal on Sunday, March 4, 2001 at -0600 said:

>Hello all,
>
>I am dealing with a very frustrating situation, where a simple
>duplicate command in the Finder that can take longer then 60 seconds,
>works fine from Script Editor, but not from inside a FileMaker Pro 5
>script.
>When run from FMP5, it ignores the 'with timeout' part and times out
>after a minute.
>
>Here is the command I tried:
>
>with timeout of 3000 seconds
> tell application "Finder"
> set new_Folder to duplicate folder the_Folder to folder dest_folder
> set name of new_Folder to new_Name
> end tell
>end timeout
>
>I tried:
>1. putting the timeout in the tell block
>2. wrapping the command only with the timeout
>3. making the whole portion a handler.
>Nothing works.
>
>I know that there's a way to detect the timeout error code, and treat
>the situation with a handler that is invoked whenever a timeout
>occurs...
>
>my only other solution is:
>
>tell application "Finder"
> ignoring application responses
> duplicate folder the_Folder to folder dest_folder
> end ignoring
> repeat until folder (dest_folder & old_name as string) exists
> delay 2
> end repeat
> set name of folder (dest_folder & old_name as string) to new_Name
>end tell
>
>The issue here is that the name changes before the 'copy' is
>complete, and the script continues while a part of the operation
>isn't complete.
>AND: it will be a workaround for a feature that should work!!
>
>Anybody?
>--
> C U S T O M F L O W S O L U T I O N S
>
>Hanaan Rosenthal * Workflow Automation for Publishing
>email@hidden* 401-487-2957* f.401-679-0175
>
>be successful... ...work less.
>_______________________________________________
>applescript-users mailing list
>email@hidden
>http://www.lists.apple.com/mailman/listinfo/applescript-users

--
david dahl
ddahl.com


  • Follow-Ups:
    • Re: SOS: AppleScript in FMP5 times out!!!
      • From: Giorgio Valoti <email@hidden>
References: 
 >SOS: AppleScript in FMP5 times out!!! (From: Hanaan Rosenthal <email@hidden>)

  • Prev by Date: Re: Signature appPath launch with nested appName tells...
  • Next by Date: Re: Signature appPath launch with nested appName tells...
  • Previous by thread: SOS: AppleScript in FMP5 times out!!!
  • Next by thread: Re: SOS: AppleScript in FMP5 times out!!!
  • Index(es):
    • Date
    • Thread