• 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: delete the entry from loginwindow.plist using command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delete the entry from loginwindow.plist using command


  • Subject: Re: delete the entry from loginwindow.plist using command
  • From: Ed Wastrodowski <email@hidden>
  • Date: Tue, 29 Jan 2008 10:28:36 -0800

Sunil
Do man defaults in a terminal window to see:
---snip---
    defaults [-currentHost | -host hostname] delete [domain [key]]
---sniip--
Ed

On Jan 29, 2008, at 5:56 AM, sunil prajapati wrote:


Hi Guys,

I successfully entered my application in loginwindow.plist through command line. But unable to delete that entry.

How to remove the my added entry from loginwindow.plist from command line or shells script?

From net I found one script which remove the entry from loginwindow.plist,but it remove whole entries from the plist.

The command is:

#!/bin/sh
theApp="your app"
nl=`echo "x" | tr 'x' '\34'` # what is the proper way to set ascii to a variable?
aaa=`defaults read loginwindow AutoLaunchedApplicationDictionary`
bbb=`echo -n "$aaa" | sed "s/^[()]$//;s/},/}$nl/" | tr '\n\34' '\00 \n'| grep -va "$theApp" | tr '\n\00' ',\n' | sed 's/^,$//'`
defaults write loginwindow AutoLaunchedApplicationDictionary "($bbb)"


Waiting for helpful reply.

--
Thanks & Regards,

Sunil Prajapati
Software Developer in Macintosh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40thermeon.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >delete the entry from loginwindow.plist using command (From: "sunil prajapati" <email@hidden>)

  • Prev by Date: Re: CFURL crash: multi-threading issue?
  • Next by Date: Re: delete the entry from loginwindow.plist using command
  • Previous by thread: delete the entry from loginwindow.plist using command
  • Next by thread: Re: delete the entry from loginwindow.plist using command
  • Index(es):
    • Date
    • Thread