|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Removing an OSX dock iconWith the following I'm able to add an icon to the OSX dock. I'm
wondering if anyone knows (or would care to guess) how to remove an icon from the dock... besides dragging it off : ) -- line 1 is really long put "defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</ key><dict><key>_CFURLString</key><string>/Applications/ MyRevStandalone.app/</string><key>_CFURLStringType</key><integer>0</ integer></dict></dict></dict>';" into tCmd -- line 2 put shell(tCmd) -- line 3 get shell("killall Dock") Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott@... _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Removing an OSX dock icon> With the following I'm able to add an icon to the OSX dock. I'm > wondering if anyone knows (or would care to guess) how to remove an > icon from the dock... besides dragging it off : ) Take a look at the "PlistBuddy" command line file that ships in the bundles of a lot of software on the Mac. Under Leopard, there should be one at /usr/libexec/PlistBuddy. If you run it with the -h parameter, you can get the list of what you can do with it. Then you can use it with the Dock's plist file (~/Library/Preferences/com.apple.dock.plist). For example, to delete the item in the 13th app slot on the dock (you'd need to run PlistBuddy with other configs to determine the slot number), you can execute this: /usr/libexec/PlistBuddy -c "Delete persistent-apps:13" ~/Library/Preferences/com.apple.dock.plist And then reload the dock with "killall Dock"). It's a real PITA, but it works pretty well. Ken Ray Sons of Thunder Software, Inc. Email: kray@... Web Site: http://www.sonsothunder.com/ _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Removing an OSX dock iconHello Ken,
Thanks a bunch. I didn't know about PlistBuddy. I've got it working now! Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott@... On Jul 22, 2008, at 11:38 AM, Ken Ray wrote: > >> With the following I'm able to add an icon to the OSX dock. I'm >> wondering if anyone knows (or would care to guess) how to remove an >> icon from the dock... besides dragging it off : ) > > Take a look at the "PlistBuddy" command line file that ships in the > bundles > of a lot of software on the Mac. Under Leopard, there should be one at > /usr/libexec/PlistBuddy. > > If you run it with the -h parameter, you can get the list of what > you can do > with it. Then you can use it with the Dock's plist file > (~/Library/Preferences/com.apple.dock.plist). > > For example, to delete the item in the 13th app slot on the dock > (you'd need > to run PlistBuddy with other configs to determine the slot number), > you can > execute this: > > /usr/libexec/PlistBuddy -c "Delete persistent-apps:13" > ~/Library/Preferences/com.apple.dock.plist > > And then reload the dock with "killall Dock"). It's a real PITA, but > it > works pretty well. > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray@... > Web Site: http://www.sonsothunder.com/ > > > _______________________________________________ > use-revolution mailing list > use-revolution@... > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Removing an OSX dock icon> Thanks a bunch. I didn't know about PlistBuddy. I've got it working > now! BTW: If this is going to be a commercial app, you may want to insure against the possibility that PlistBuddy isn't in the place you think it is (I've had that happen when going from Tiger (where it was in the AdditionalEssentials.pkg receipt file) to Leopard (where it ended up in /usr/libexec)). Here's a handy handler I wrote just in case... feel free to use any or all of it (watch line wraps): function stsFindPListBuddy -- Attempts to locate PlistBuddy by some known paths first, and -- then uses "locate" if it can't find it. PlistBuddy is installed with a -- lot of software so it should always be there. put "/usr/libexec/PlistBuddy" & cr & "/Library/Receipts/ AdditionalEssentials.pkg/Contents/Resources/PlistBuddy" into tKnownLocs repeat for each line tLoc in tKnownLocs if there is a file tLoc then return tLoc end repeat put shell("/usr/bin/locate PlistBuddy | sed 2,10000d") into tLoc put word 1 to -1 of tLoc into tLoc return fixPath(tLoc) -- Just in case of spaces, etc. end stsFindPListBuddy function fixPath pPath put "\" & space & quote & "'`<>!;()[]?#$^&*=" into tSpecialChars repeat for each char tChar in tSpecialChars replace tChar with ("\" & tChar) in pPath end repeat return pPath end fixPath Enjoy! Ken Ray Sons of Thunder Software, Inc. Email: kray@... Web Site: http://www.sonsothunder.com/ _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Removing an OSX dock iconHello Ken and thanks again. I am already using a script to locate
copies of FileBuddy and so far it seems to work on the few machines I've tested. But thanks for suggesting it because it was dumb luck I ran across this script. put "find /Library/Receipts -name *PlistBuddy" into tFindScript put shell(tFindScript) into tPlistBuddyList I then figure out which has the most recent creation date and go with that one. My fixPath() routine doesn't take all the same characters into account.... I'll be using yours! Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott@... On Jul 23, 2008, at 9:31 AM, Ken Ray wrote: > > >> Thanks a bunch. I didn't know about PlistBuddy. I've got it working >> now! > > BTW: If this is going to be a commercial app, you may want to insure > against > the possibility that PlistBuddy isn't in the place you think it is > (I've had > that happen when going from Tiger (where it was in the > AdditionalEssentials.pkg receipt file) to Leopard (where it ended up > in > /usr/libexec)). Here's a handy handler I wrote just in case... feel > free to > use any or all of it (watch line wraps): > > > function stsFindPListBuddy > -- Attempts to locate PlistBuddy by some known paths first, and > -- then uses "locate" if it can't find it. PlistBuddy is installed > with a > -- lot of software so it should always be there. > put "/usr/libexec/PlistBuddy" & cr & "/Library/Receipts/ > AdditionalEssentials.pkg/Contents/Resources/PlistBuddy" into > tKnownLocs > repeat for each line tLoc in tKnownLocs > if there is a file tLoc then return tLoc > end repeat > put shell("/usr/bin/locate PlistBuddy | sed 2,10000d") into tLoc > put word 1 to -1 of tLoc into tLoc > return fixPath(tLoc) -- Just in case of spaces, etc. > end stsFindPListBuddy > > function fixPath pPath > put "\" & space & quote & "'`<>!;()[]?#$^&*=" into tSpecialChars > repeat for each char tChar in tSpecialChars > replace tChar with ("\" & tChar) in pPath > end repeat > return pPath > end fixPath > > Enjoy! > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray@... > Web Site: http://www.sonsothunder.com/ > > > _______________________________________________ > use-revolution mailing list > use-revolution@... > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Removing an OSX dock icon2008/7/22 Ken Ray <kray@...>:
> > And then reload the dock with "killall Dock"). It's a real PITA, but it > works pretty well. PITA? - when I google for that I get: Immoral Traffic in Persons Act<http://en.wikipedia.org/wiki/Immoral_Traffic_in_Persons_Act>, legislation passed in India in 1956 abbreviated as PITA _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Removing an OSX dock iconOn 24/7/08 8:39 PM, "David Bovill" <david@...> wrote:
> 2008/7/22 Ken Ray <kray@...>: > >> >> And then reload the dock with "killall Dock"). It's a real PITA, but it >> works pretty well. > > > PITA? - when I google for that I get: Immoral Traffic in Persons > Act<http://en.wikipedia.org/wiki/Immoral_Traffic_in_Persons_Act>, > legislation passed in India in 1956 abbreviated as PITA I thought it was a type of flat bread that goes well with hummus ;) > _______________________________________________ > use-revolution mailing list > use-revolution@... > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: Removing an OSX dock iconClose... Pain In The Axx
Cheers, Luis. On 24 Jul 2008, at 11:45, Terry Judd wrote: > On 24/7/08 8:39 PM, "David Bovill" <david@...> wrote: > >> 2008/7/22 Ken Ray <kray@...>: >> >>> >>> And then reload the dock with "killall Dock"). It's a real PITA, >>> but it >>> works pretty well. >> >> >> PITA? - when I google for that I get: Immoral Traffic in Persons >> Act<http://en.wikipedia.org/wiki/Immoral_Traffic_in_Persons_Act>, >> legislation passed in India in 1956 abbreviated as PITA > > I thought it was a type of flat bread that goes well with hummus ;) >> _______________________________________________ >> use-revolution mailing list >> use-revolution@... >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > use-revolution@... > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
| Free Forum Powered by Nabble | Forum Help |