Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help required with Shell Script please...



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

Hi Luther,

Thanks for the help.
I did ask someone with some unix experience and they helped me along the way.
I ended up with this:-

         do shell script "defaults read com.apple.print.customPresets | grep customPresetNames

If I execute that it returns this:-
\"com.apple.print.customPresetNames\" = (\"a4 duplex\", test1);

from which I can get the preset names.

I've also tried your code which works, thanks for that. Gonna have a further tinker with it to extract the preset names only.

Regards

Nick




On 30 Mar 2007, at 13:48, Luther Fuller wrote:

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





**********************************************************************
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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Help required with Shell Script please... (From: Nick Hearn <email@hidden>)
 >Re: Help required with Shell Script please... (From: Luther Fuller <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.