• 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: Install in Dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Install in Dock (From: Luther Fuller <email@hidden>)
 >Re: Install in Dock (From: Luther Fuller <email@hidden>)
 >Re: Install in Dock (From: André Berg <email@hidden>)

  • Prev by Date: Re: Install in Dock
  • Next by Date: Re: Did anyone try to script Bento 2?
  • Previous by thread: Re: Install in Dock
  • Next by thread: Unable to deal with audio file
  • Index(es):
    • Date
    • Thread