02-19-2010
Plist to Unix Executable
I'm using an old conversion method for converting a plist into an XML file, but that's not what I'm needing just via terminal now. What I'm looking for is an answer to convert a plist file into an executable. I'd like to import it into Casper and have the JSS push it out onto an image. In this case the plist is the "com.apple.sidebarlists.plist"
Making this into a script would be keen.
Any thoughts? Suggestions?
** As some of you are thinking about a resolve for this one with me, keep in mind that plists have nested properties. It's controlling the properties switches binaurally that I'd like to be able to do. Simple by logic, 0 = off, 1 = on ...Bool = true/false.
Last edited by unimachead; 02-20-2010 at 02:18 AM..
Reason: Extra tips
10 More Discussions You Might Find Interesting
1. OS X (Apple)
Help!! I loaded OS X Panther on my Mac G4 and found that many files previously saved as txt files were inadventently converted to Unix executable files. When I try to read these in Word, the Word filters cannot recognize or translate the file properly. Does anyone know how to translate these files?... (1 Reply)
Discussion started by: Steven Greenber
1 Replies
2. OS X (Apple)
I loaded OS X Panther on my Mac G4 and found that many files previously saved as Word or Word Perfect files were inadventently converted to Unix executable files. When I try to read these in Word, it cannot recognize or translate the file properly. Does anyone know how to translate these files? Is... (4 Replies)
Discussion started by: Steven Greenber
4 Replies
3. OS X (Apple)
:(
what is the best way of editing the various .plist files without adding third party files? Or is the easiest way is to add third party applications, which ones? please kept in mind that i am not a programmer.
mike (1 Reply)
Discussion started by: mehow
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I am very new to UNIX and I have been learning about writing scripts and making them executable. I created a script called myscript. It has three lines:
#! /bin/sh
# This is my first shell script
echo friendsjustfriends
Now I try to run it using the sh command and it works
Next I... (4 Replies)
Discussion started by: rohitx
4 Replies
5. UNIX for Dummies Questions & Answers
I have installed the Darwin Calendar Server on my Mac and got it working.
To start the server I open a Finder window on my mac and click the UNIX executable called RUN.
In order to start the server automatically on bootup I used LINGON to add a startup Daemon to call "RUN -d". When I reboot... (6 Replies)
Discussion started by: thylacine
6 Replies
6. UNIX for Dummies Questions & Answers
Hi there,
I'm trying to retrieve a value from a plist file, which I have done before with no problems, however this plist file looks a little different....
Normally it's like this;
<plist version="1.0">
<dict>
key>KeyName</key>
<string>blah</string>
I want the value of KeyName, so... (1 Reply)
Discussion started by: davewg
1 Replies
7. UNIX for Dummies Questions & Answers
How to list out the files which are not accessed for the last n days?
and
How to list out all the executable files in a directory?
can anyone help me on the above?
Thanks in advance. (3 Replies)
Discussion started by: venkatesht
3 Replies
8. Shell Programming and Scripting
Hi - How can I find out under sh whitch file is an unix executable file? Need it for an software inventory. Thanks in advance. Regards - Lazybaer (6 Replies)
Discussion started by: lazybaer
6 Replies
9. Shell Programming and Scripting
Hi,
I want to write an executable file in unix env to go to a particular path instead of always typing the long path cd /app/oracle/product/10.2.0/Db_1/scripts/prejib/sample.
I have tried with the below script in but not working . please help me
bash-3.00$ cat a.sh
#!/bin/sh ... (3 Replies)
Discussion started by: prejib
3 Replies
10. Shell Programming and Scripting
Hi,
I wondered if it was possible to parse a plist file like this
http://dl.dropbox.com/u/14586156/stuff/Bookmarks.plist
so it will afterwards look like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"... (0 Replies)
Discussion started by: pasc
0 Replies
LEARN ABOUT DEBIAN
minput_get_command
minput_get_command(3m17n) The m17n Library minput_get_command(3m17n)
NAME
minput_get_command - Get information about input method command(s).
SYNOPSIS
MPlist* minput_get_command (MSymbol language, MSymbol name, MSymbol command)
DESCRIPTION
Get information about input method command(s). The minput_get_command() function returns information about the command command of the input
method specified by language and name. An input method command is a pseudo key event to which one or more actual input key sequences are
assigned.
There are two kinds of commands, global and local. A global command has a global definition, and the description and the key assignment may
be inherited by a local command. Each input method defines a local command which has a local key assignment. It may also declare a local
command that inherits the definition of a global command of the same name.
If language is Mt and name is Mnil, this function returns information about a global command. Otherwise information about a local command
is returned.
If command is Mnil, information about all commands is returned.
The return value is a well-formed plist (Property List) of this format:
((NAME DESCRIPTION STATUS [KEYSEQ ...]) ...)
NAME is a symbol representing the command name.
DESCRIPTION is an M-text describing the command, or Mnil if the command has no description.
STATUS is a symbol representing how the key assignment is decided. The value is Mnil (the default key assignment), Mcustomized (the key
assignment is customized by per-user customization file), or Mconfigured (the key assignment is set by the call of
minput_config_command()). For a local command only, it may also be Minherited (the key assignment is inherited from the corresponding
global command).
KEYSEQ is a plist of one or more symbols representing a key sequence assigned to the command. If there's no KEYSEQ, the command is
currently disabled (i.e. no key sequence can trigger actions of the command).
If command is not Mnil, the first element of the returned plist contains the information about command.
RETURN VALUE
If the requested information was found, a pointer to a non-empty plist is returned. As the plist is kept in the library, the caller must
not modify nor free it.
Otherwise (the specified input method or the specified command does not exist), NULL is returned.
Example:
MText *
get_im_command_description (MSymbol language, MSymbol name, MSymbol command)
{
/* Return a description of the command COMMAND of the input method
specified by LANGUAGE and NAME. */
MPlist *cmd = minput_get_command (langauge, name, command);
MPlist *plist;
if (! cmds)
return NULL;
plist = mplist_value (cmds); /* (NAME DESCRIPTION STATUS KEY-SEQ ...) */
plist = mplist_next (plist); /* (DESCRIPTION STATUS KEY-SEQ ...) */
return (mplist_key (plist) == Mtext
? (MText *) mplist_value (plist)
: NULL);
}
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 minput_get_command(3m17n)