On Jun 15, 2006, at 3:40 AM, Bee wrote:
From terminal and OnMyCommand I can use the following to convert a
binary plist to a text (xml) plist.
plutil -convert xml1 <file>
Can you write it so it works from the BBEdit Unix Filters script menu?
Is there a particular reason you want to use the Unix Filters menu?
If you can make clear what problem you are trying to solve, we may be
able to provide a more specific/suitable answer.
For example, to convert the front document into something readable,
the best way is probably via AppleScript. (It requires a small hack
to close and reopen the file since there is currently no other way to
get BBEdit to reload the file contents via script.)
tell application "BBEdit"
set f to file of document 1
close document 1
end tell
set pf to POSIX path of f
set commandString to "plutil -convert xml1 " & quoted form of pf
do shell script commandString
tell application "BBEdit"
open f
end tell
Jim
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>