• 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
Re: Return PDF default reader
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return PDF default reader


  • Subject: Re: Return PDF default reader
  • From: Laine Lee <email@hidden>
  • Date: Fri, 30 Mar 2007 09:55:20 -0500
  • Thread-topic: Return PDF default reader

On 1/15/07 5:55 PM, "kai" <email@hidden> wrote:

>
> set defaultApp to word -1 of (do shell script "defaults read
> com.apple.LaunchServices LSHandlers | grep -A 2 'LSHandlerContentType
> = \"com.adobe.pdf\";' | grep 'LSHandlerRoleAll = \"'")
>
> ----------

The output of "defaults read  com.apple.LaunchServices LSHandlers" doesn't
contain "com.adobe.pdf" omm (10.4.9 intel), so a non-zero status (error) is
returned by the command. So neither of these approaches works. Is there any
other value to test against?


--
Laine Lee


 _______________________________________________
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: Return PDF default reader
      • From: kai <email@hidden>
  • Prev by Date: Selecting existing mail account
  • Next by Date: Re: Scripting TextEdit and saving a file without user intervention
  • Previous by thread: Re: Selecting existing mail account
  • Next by thread: Re: Return PDF default reader
  • Index(es):
    • Date
    • Thread