• 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: With timeout of
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: With timeout of


  • Subject: Re: With timeout of
  • From: Emmanuel <email@hidden>
  • Date: Sat, 9 Dec 2000 11:21:40 +0100

At 23:17 +0100 8/12/00, email@hidden wrote:
>I think it may have to do with the tell me's, but i need the dialogs to be in
>the script's app. here it is, shortened:

Overencapsulation may generate unexpected behavior.

If you think the "tell me" is involved, you might consider testing a
version without it:

-------------------------------------
...yada yada yada
try
with timeout of 100000 seconds
tell app "Finder"
...yada yada yada
end
repeat
set theApp to (choose from list theList
with prompt "" default items {theApp} cancel button name "Quit") as text
if theApp is "Ships" then
tell app "Finder"
...yada yada yada
end
else if theApp is "Other" then
tell app "Finder" to open theplug
using alias (mpath & "Apps:Resedit")
end if
end repeat
end timeout
on error theerr number theenum
display dialog "An error has occurred." buttons
{"Description", "Quit"} default button 2
if the button returned of the result is "Description" then
display dialog "#" & theenum & return & return &
theerr buttons "Quit" default button 1
end if
end try
-------------------------------------

Moreover this will save tabs, thus bandwidth. :)

Emmanuel


References: 
 >With timeout of (From: email@hidden)

  • Prev by Date: Re: AS starting
  • Next by Date: Re: getting the timing right
  • Previous by thread: With timeout of
  • Next by thread: Re: With timeout of
  • Index(es):
    • Date
    • Thread