Re: Problem Adding an Application to the Dock
Re: Problem Adding an Application to the Dock
- Subject: Re: Problem Adding an Application to the Dock
- From: Laine Lee <email@hidden>
- Date: Wed, 18 Jun 2008 11:30:48 -0500
- Thread-topic: Problem Adding an Application to the Dock
On 6/17/08 11:10 AM, "Dave" <email@hidden> wrote:
> Hi All,
>
> I use the following handler to add a file to the dock. This works really well
> except if the file is already in the dock, it add it again! I'm having trouble
> figuring out the shell command to remove the file from the dock.
>
Can you use
do shell script "defaults find \"[your item]\""
to check for your item in the dock before deciding about adding it? That's
more complicated, of course, if your item might exist elsewhere in the
defaults.
--
Laine Lee
_______________________________________________
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