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: Return PDF default reader



hi Jay,

On 15-jan-2007, at 20:23, email@hidden wrote:

Ronald Hofman kindly suggested the following:

set DefaultApp to (word -6 of (do shell script "defaults read
com.apple.Preview"))

Unfortunately, OMM it errors out with the following message: ³sh: line 2:
com.apple.Preview: command not found²


Any ideas ?
Just make sure jou put the whole line Ronald suggest in 1 (one) line. Looks like somewhere along the route from what Ronald typed to what you read the one-liner got wrapped into 2 lines. Hence the error message.

BTW, I tried the one line (which then compiles and runs) however it does not return the default app with the "preferences" which are on my machine as being the 6th word from the end of that entry ....

YMMF :-> so it may work as advertised on your machine (??)

Kind regards,


Bart-Jan. _______________________________________________ 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/mailman//archives/applescript-users

This email sent to 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.