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

Help required with Shell Script please...


  • Subject: Help required with Shell Script please...
  • From: Nick Hearn <email@hidden>
  • Date: Fri, 30 Mar 2007 12:44:57 +0100

***Before acting on this email or opening any attachment you are advised to read the disclaimer at the end of this email***
************************************

Hi there,

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'.

If I run this script:-

          do shell script "defaults read com.apple.print.customPresets"

part of what I get back is this :-

\"com.apple.print.customPresetNames\" = (\"a4 duplex\", test1, test2);

I've been trying a number of different ways to access just the preset names i.e. a4 duplex, test1, test2.
I'd like to be able to get these into a list so I can present them to the user and they can select which preset they require.

I've trawled through a number of articles and pages of info however, as yet I've still not come up with a solution.
I feel I'm very close but I'm not sure how to achieve this task.

Any help would be much appreciated.

Thanks in advance,

Nick



**********************************************************************
Communisis plc - registered no: 2916113 is a limited company registered in England and Wales and whose registered office is at Wakefield Road, Leeds, LS10 1DU.

Please Note: This e mail and its attachments contain only the opinions of the sender and do not necessarily reflect the policy (s) of the Communisis group in general.

Confidentiality: This e-mail and the contents of any attachments are intended for the named recipient(s) only and may be confidential. If you have received this e-mail and its contents in error you must take no action based on them, nor must you copy or show them to anyone. Please reply to this e-mail and highlight the error.

Warning: Although this e-mail and any attachments have been scanned for viruses, Communisis cannot guarantee that they are virus free. The Communisis group therefore accepts no responsibility for any loss or damage caused by transmission of this e-mail.
**********************************************************************

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
 _______________________________________________
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: Luther Fuller <email@hidden>
  • Prev by Date: Re: Printer Setup Utility, starting a stopped printer.
  • Next by Date: Re: Help required with Shell Script please...
  • Previous by thread: Quietly Distill a file
  • Next by thread: Re: Help required with Shell Script please...
  • Index(es):
    • Date
    • Thread