Re: Safari Download Folder?
Re: Safari Download Folder?
- Subject: Re: Safari Download Folder?
- From: Philip Aker <email@hidden>
- Date: Wed, 4 Mar 2009 11:01:22 -0800
On 2009-03-04, at 10:55:59, Mark J. Reed wrote: On Wed, Mar 4, 2009 at 1:50 PM, Philip Aker < email@hidden> wrote: On 2009-03-04, at 10:26:40, Mark J. Reed wrote:
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")
Ah, "path to application". I keep forgetting we have that now! In that case, you can just do this to get the bundle id: set bid to bundle id of (info for path to application "Safari")
Yes, I just noticed that _after_ I sent that post :-)
However, I think it's "bundle identifier":
set pp to POSIX path of (path to preferences) set bid to bundle identifier of (info for (path to application "Safari")) set sp to pp & bid & ".plist" tell application "System Events" 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