• 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: Help required with Shell Script please...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help required with Shell Script please...


  • Subject: Re: Help required with Shell Script please...
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 30 Mar 2007 07:48:12 -0500

On Mar 30, 2007, at 6:44 AM, Nick Hearn wrote:
Please can someone help me. I'm trying to get a list of the names of custom print presets from this plist file 'com.apple.print.custompresets.plist'.

You don't need a shell script. Reading the contents of a plist file is best done like this ...


-- plistAlias is an alias to the file com.apple.print.custompresets.plist
tell application "System Events"
plistAlias as text
set plistRec to (value of property list file the result)
end tell


Of course, you will also need to know the structure of the record 'plistRec' so you can experiment with it. You will need the application "Property List Editor.app" located in /Developer/ Applications/Utilities/. (Install Developer Tools, if you haven't.)

You would think that you would be able to print from "Property List Editor.app" ... you can't!
You will have to take a picture of the upper pane. (Don't even touch the Dump button.)


_______________________________________________
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
  • Follow-Ups:
    • Re: Help required with Shell Script please...
      • From: Nick Hearn <email@hidden>
References: 
 >Help required with Shell Script please... (From: Nick Hearn <email@hidden>)

  • Prev by Date: Help required with Shell Script please...
  • Next by Date: Re: Help required with Shell Script please...
  • Previous by thread: Help required with Shell Script please...
  • Next by thread: Re: Help required with Shell Script please...
  • Index(es):
    • Date
    • Thread