• 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: True Optional Handler Parameters (Positional)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: True Optional Handler Parameters (Positional)


  • Subject: Re: True Optional Handler Parameters (Positional)
  • From: Emmanuel <email@hidden>
  • Date: Mon, 23 Feb 2004 13:00:58 +0100

At 5:09 PM -0800 22/02/04, Michael Terry wrote:
>on nullifyCodes of everyFile without theAidOfThisVariable
> if everyFile is {} then set everyFile to choose file
> tell application "Finder" to repeat with f in everyFile as item as list
> set {f's file type, f's creator type} to nil
> end repeat
>end nullifyCodes
>
>nullifyCodes()
>nullifyCodes(choose file, choose file, choose file)
>nullifyCodes(files of item (choose folder) of application "Finder")

I test your idea under Jaguar with that handler:

------------------
on MTTest of theParams without AnythingElse
repeat with theParam in theParams
display dialog theParam
end
end
------------------

------------------
MTTest() -- does nothing, it's OK
MTTest("3") -- "unexpectingly" quits the editor
------------------

Do you have that work under Panther?

Emmanuel
_______________________________________________
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: True Optional Handler Parameters (Positional)
      • From: Michael Terry <email@hidden>
References: 
 >True Optional Handler Parameters (Positional) (From: Michael Terry <email@hidden>)

  • Prev by Date: Re: Efficiently using whose on Address Book users
  • Next by Date: Re: constructing file name
  • Previous by thread: Re: True Optional Handler Parameters (Positional)
  • Next by thread: Re: True Optional Handler Parameters (Positional)
  • Index(es):
    • Date
    • Thread