| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
if only diskutil knows about it. See my other message in regards to that.
Handy. I would have done it with -plist, I think, rather than trying to
parse the output of the non-plist form...
That can be simplified to two regex matches instead of four:
Thanks for that.
it's not "elseif" but "elsif" and, because there is a "next" in the if-block, a simple "if" will do too.while (<>) { if (/^\\s*(\\w[^:]+?)\\s*:\\s*(.*?)\\s*$/) { $info{$last_key=$1} = $2; next; } elseif ($last_key && /\S/) { chomp( $info{$last_key} .= qq(\\n) . $_ ); } }
_______________________________________________ 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
| References: | |
| >UUID (From: Luther Fuller <email@hidden>) | |
| >diskutil_info handler (Was: UUID) (From: Skeeve <email@hidden>) | |
| >Re: diskutil_info handler (Was: UUID) (From: "Mark J. Reed" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.