Mailing Lists: Apple Mailing Lists

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

Return PDF default reader



Title: Return PDF default reader

Hi all,

I am looking for a way to return the name of the default app that opens PDF’s (Preview, Acrobat, whatever).

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 ?

best,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

skypeme:
jaylouvion

www.studiocasagrande.com


P Please consider the environment before printing this 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/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.