• 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: Takaaki Naganoya <email@hidden>
  • Date: Thu, 5 Mar 2009 20:18:51 +0900

It gave me wrong result in Japanese environment.

<AppleScript>
do shell script "defaults read com.apple.safari DownloadsPath"
</AppleScript>
--> "~/Documents/\\u30bf\\u3099\\u30a6\\u30f3\\u30ed\\u30fc\\u30c8\ \u3099"


On 2009/03/05, at 8:37, John Baltutis wrote:

On 3/4/09, Joe <email@hidden> wrote:
At 5:18 PM +0000 3/4/09, Dave wrote:
I need to be able to get the path specified in the "Downloads Folder" Field
in the Safari Prefs Window.

set prefsfile to (path to preferences as text) & "com.apple.Safari.plist"
tell application "System Events"
set dlfold to get value of property list item "DownloadsPath"of property
list file prefsfile
activate
display dialog dlfold buttons {"OK"} default button 1
end tell

This is simpler:

do shell script "defaults read com.apple.safari DownloadsPath"
result
--

Takaaki Naganoya Piyomaru Software http://piyo.piyocast.com email@hidden

PiyoCast Web (Podcasting with Music!)
http://www.piyocast.com
Free AppleScript Library "AS Hole"
http://www.piyocast.com/as/



_______________________________________________
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: 
 >Re: Safari Download Folder? (From: John Baltutis <email@hidden>)

  • Prev by Date: Save as PDF File for Microsoft Word
  • 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