• 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: Re: Parents/Child Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Parents/Child Scripts


  • Subject: Re: Re: Parents/Child Scripts
  • From: Lachlan Deck <email@hidden>
  • Date: Tue, 14 May 2002 10:25:43 +1000

Hi there,

From: Paul Skinner <email@hidden>

Au contraire mon ami. Opps, I mean Bollocks!

You made a mistake...a small one...but receive a well done stamp ;-)

on display dialog (parameters)
if the class of the parameters is string then
set message to the parameters
set buttonlist to {"OK"}
set defaultButton to last item of buttonlist
set IconSpec to 3
else
try
set message to message of parameters
try
set buttonlist to buttonlist of parameters
on error
set buttonlist to {"OK"}
end try
try
set defaultButton to defaultButton of parameters
on error
set defaultButton to last item of buttonlist
end try
try
set IconSpec to IconSpec of parameters
on error
set IconSpec to 3
end try
on error
error "No display text was provided for Display Dialog."

change to either:
return "No display text was provided for Display Dialog."
display dialog "No display...."

end try
end if
continue display dialog message buttons buttonlist default button
defaultButton with icon IconSpec
end display dialog


display dialog ("Hello World")
display dialog ({message:"Hello World"})
display dialog ({message:"Hello World", buttonlist:{"Push me"}})
display dialog ({message:"Hello World", buttonlist:{"Don't push me",
"Push me"}, IconSpec:1})
display dialog ({message:"Hello World", buttonlist:{"Don't push me",
"Push me"}, defaultButton:"Don't push me", IconSpec:1})
display dialog ({})

Chuffed! ; )

with regards,

--
Lachlan Deck
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: RE: briskets [redux]
  • Next by Date: Re: Parents/Child Scripts
  • Previous by thread: Re: Parents/Child Scripts
  • Next by thread: Re: Parents/Child Scripts
  • Index(es):
    • Date
    • Thread