• 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: Safari Download Folder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari Download Folder?


  • Subject: Re: Safari Download Folder?
  • From: Philip Aker <email@hidden>
  • Date: Wed, 4 Mar 2009 10:50:44 -0800

On 2009-03-04, at 10:26:40, Mark J. Reed wrote:

On Wed, Mar 4, 2009 at 1:20 PM, Luther Fuller <email@hidden> wrote:
There is a way. And it's standard. Read the value of CFBundleIdentifier in
the application bundle's "info.plist" file. For Safari this value is
"com.apple.Safari". You can also simply get the 'bundle identifier' of
StandardAdditions 'info for' command.

Both of those require knowing where Safari.app lives.  If all I have
is (application "Safari"), what's the first step?

set pp to POSIX path of (path to preferences)
set ap to POSIX path of (path to application "Safari") & "/Contents/Info.plist"
tell application "System Events"
set bid to value of property list item "CFBundleIdentifier" of property list file ap
set sp to pp & bid & ".plist"
set dldir to get value of property list item "DownloadsPath" of property list file sp
end tell



Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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: Safari Download Folder?
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Safari Download Folder? (From: Dave <email@hidden>)
 >Re: Safari Download Folder? (From: "Mark J. Reed" <email@hidden>)
 >Re: Safari Download Folder? (From: Luther Fuller <email@hidden>)
 >Re: Safari Download Folder? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Safari Download Folder?
  • Next by Date: Re: Safari Download Folder?
  • Previous by thread: Re: Safari Download Folder?
  • Next by thread: Re: Safari Download Folder?
  • Index(es):
    • Date
    • Thread