Re: True Optional Handler Parameters (Positional)
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.