Re: Script to save webloc
Re: Script to save webloc
- Subject: Re: Script to save webloc
- From: Fuller Luther <email@hidden>
- Date: Fri, 09 Jan 2009 07:46:38 -0600
On Jan 9, 2009, at 2:03 AM, Scott Haneda wrote:
Hooray, so it is working. Now I have a new issue, which is the
Dropbox is shared across many machines, and of course, .webloc files
still use resource forks, which are not cross platform, let alone
able to move across non Mac volumes.
Here is where I am at now, and would like to save the url into
a .url file:
set dest to (path to home folder from user domain as text) &
"Dropbox:" & "URLs"
I've just seen what may become a problem. Your "Dropbox" folder is
inside your home folder. It may not be available if another user is
logged-in. (?) To be safe, relocate the folder and use this ...
set dest to (path to shared documents as text) & "Dropbox:" & "URLs"
In fact, you might want to write the folder creation into your code
with something like this ...
set sharedFolder to (path to shared documents)
set dropName to "Dropbox"
set urlName to "URLs"
tell application "Finder"
if not (exists folder dropName of sharedFolder) then
set dest to make new folder at sharedFolder with properties
{name:dropName}
else
set dest to (folder dropName of sharedFolder)
end if
if not (exists folder urlName of dest) then
set dest to make new folder at dest with properties {name:urlName}
else
set dest to (folder urlName of dest)
end if
...
end tell
_______________________________________________
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