Re: Acquiring the Dropbox Folder Path -- was: Re: Error -10000 for one user
Re: Acquiring the Dropbox Folder Path -- was: Re: Error -10000 for one user
- Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error -10000 for one user
- From: "Stockly, Ed" <email@hidden>
- Date: Fri, 22 Apr 2016 20:46:08 +0000
- Thread-topic: Acquiring the Dropbox Folder Path -- was: Re: Error -10000 for one user
set myPath to path to home folder
set jsonPath to (myPath as text) & ".dropbox:info.json"
set dropboxText to read file jsonPath
set AppleScript's text item delimiters to {"/", "\", \"host\":"}
set dropboxList to text items of dropboxText
set AppleScript's text item delimiters to {":"}
set dropboxPath to {myPath as text}
set the end of dropboxPath to items 4 thru -2 of dropboxList as text
set AppleScript's text item delimiters to {""}
set dropboxPath to dropboxPath as text
set dropboxPath to dropboxPath as alias
So this works if you have a single dropbox folder. (At least it does on
multiple users on two of my macs).
Is it possible to have more than one dropbox folder? How does that work?
What does the info file look like if you have more than one?
_______________________________________________
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