Re: Install in Dock
Re: Install in Dock
- Subject: Re: Install in Dock
- From: André Berg <email@hidden>
- Date: Thu, 06 Nov 2008 05:30:35 +0100
Small correction:
---------------------------------- CODE START
-------------------------------------
--
-- Description: A convenience handler for newDockFolder set to
-- Sort by Name, Display as Folder and Show contents as List
--
-- Return Value: True if the folder could be created false otherwise
--
on newMenuDockFolder(folderAlias)
return newDockFolder(folderAlias, "Name", "Folder", "List")
end newMenuDockFolder
---------------------------------- CODE END
----------------------------------------
Using try ... on error again in the wrapper handler doesn't make sense if we
want to return true or false. Like it was below it will always return
true...
Cheers,
André
--
-- Description: A convenience handler for newDockFolder set to
-- Sort by: Name, Display as: Folder and Show contents as: List
-- -- Return Value: True if the folder was created false otherwise
--
on newMenuDockFolder(folderAlias)
try
my newDockFolder(folderAlias, "Name", "Folder", "List")
return true
on error errMsg number errNum
return false
end try
end newMenuDockFolder
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden