Laine,
read this thread on MacScripter for the source of the problem and the
solution:
http://bbs.applescript.net/viewtopic.php?id=14772
On 1/31/06 3:20 PM, "Laine Lee" <email@hidden> spake:
> On 1/31/06 2:44 PM, "Terry Heaford" <email@hidden> wrote:
>
>> I believe this will do the trick
>>
>> on pause (tDelay)
>> set myDate to call method "date" of class "NSDate"
>> set tOldSecs to call method "timeIntervalSinceNow" of myDate
>> set tNewSecs to call method "timeIntervalSinceNow" of myDate
>> repeat until (tOldSecs - tNewSecs) > tDelay
>> set tNewSecs to call method "timeIntervalSinceNow" of myDate
>> end repeat
>> end pause
>>
>>
>
> Thanks! I haven't tried it yet, but I will, because after reporting success
> with letting Finder do the delaying, error -1762 once again appeared in my
> app. I'm perplexed, because something else that I've done in the script or
> in the IB seemingly unrelated to idling apparently has the power to affect
> this error.
>
> Laine Lee
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-studio mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/applescript-studio/email@hidden
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden
This email sent to email@hidden