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

Re: Parents/Child Scripts


  • Subject: Re: Parents/Child Scripts
  • From: has <email@hidden>
  • Date: Mon, 13 May 2002 08:00:02 +0100

Philip Aker wrote:

>--v.interesting folks!

Oh it is, it is. Alas, thanks to AS rotten inconsistent support for
optional parameters it will eventually break your heart. :(

Try:

-------
on display dialog (theText)
continue display dialog theText buttons {"OK"} default button "OK"
with icon note
end display dialog

display dialog "Hello World!" default answer "Hello Joe!"
-------

to see what I mean. And it's worse when the handler requires additional
parameters, e.g. 'display dialog foo default answer bar', because your
script with then barf if your calls _don't_ contain the "optional" 'default
answer' parameter every single time. The only time you can wrap or replace
an osax call with 100% reliability is when that osax call contains no
optional parameters, eg:

-------
property allTextCharacters : [string of ASCII chars 0-256]

on ASCII character theNumber
try
return item (theNumber + 1) of allTextCharacters
on error
error "Invalid range." number -1720
end try
end ASCII character


ASCII character 100
--> "d"
-------

(going back to the "AsciiNumber & AsciiCharacter Handlers" thread)

Cheers,

has

--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.

  • Follow-Ups:
    • Re: Parents/Child Scripts
      • From: Paul Skinner <email@hidden>
  • Prev by Date: 'Concatenate' from a list
  • Next by Date: Re: Postmodern Briskets
  • Previous by thread: Re: Parents/Child Scripts
  • Next by thread: Re: Parents/Child Scripts
  • Index(es):
    • Date
    • Thread