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

SOS: AppleScript in FMP5 times out!!!


  • Subject: SOS: AppleScript in FMP5 times out!!!
  • From: Hanaan Rosenthal <email@hidden>
  • Date: Sun, 4 Mar 2001 07:01:52 -0500

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.


  • Follow-Ups:
    • Re: SOS: AppleScript in FMP5 times out!!!
      • From: David Dahl <email@hidden>
References: 
 >Re: Upgrading to AS 1.5.5 but keeping MacOS 9.04 (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Signature appPath launch with nested appName tells...
  • Next by Date: Re: New Applescripter...Where should I start?
  • Previous by thread: Re: Upgrading to AS 1.5.5 but keeping MacOS 9.04
  • Next by thread: Re: SOS: AppleScript in FMP5 times out!!!
  • Index(es):
    • Date
    • Thread