unsubscribe
unsubscribe
- Subject: unsubscribe
- From: Matthew Marotta <email@hidden>
- Date: Wed, 27 Apr 2016 21:13:19 -0400
> On Apr 27, 2016, at 7:56 PM, email@hidden wrote:
>
> Send AppleScript-Users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AppleScript-Users digest..."
>
>
> Today's Topics:
>
> 1. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Rick Gordon)
> 2. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Rick Gordon)
> 3. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Rick Gordon)
> 4. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Rick Gordon)
> 5. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Rick Gordon)
> 6. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Shane Stanley)
> 7. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Stockly, Ed)
> 8. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Shane Stanley)
> 9. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Rick Gordon)
> 10. Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user (Stockly, Ed)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 27 Apr 2016 13:30:01 -0700
> From: Rick Gordon <email@hidden>
> To: Applescript-Users List <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> On my computer, I have 2 dropboxes, and there are 2 hidden folders, each
> containing its own info.json, along with other items.
>
> ~/.dropbox and ~/.dropbox-Team/.dropbox
>
> In my case the visible Dropbox folders are located on a non-boot drive,
> and have symlinks as ~/Dropbox and ~/Dropbox-Team.
>
> Rick Gordon
>
> ---------------------
> On 4/26/16, 5:50 PM, Stockly, Ed wrote:
>> Since the name is included with the path, this script doesn't care what
>> the name is, and should work even if there are more than two (which,
>> apparently, is possible).
>>
>> set dropBoxJsonFile to "~/.dropbox/info.json"
>> tell application "System Events" to set dropBoxJsonFile to POSIX path of
>> disk item dropBoxJsonFile
>> set dropBoxInfo to read dropBoxJsonFile
>> set AppleScript's text item delimiters to {"{\"path\": \"", "\", \"host\":
>> "}
>> set dropboxPaths to text items of dropBoxInfo
>> set dropBoxPathList to {}
>> repeat
>> if the (count of dropboxPaths)< 2 then exit repeat
>> set dropboxPaths to the rest of dropboxPaths
>> set the end of dropBoxPathList to item 1 of dropboxPaths
>> set dropboxPaths to the rest of dropboxPaths
>> end repeat
>> return dropBoxPathList
>
> ___________________________________________
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___________________________________________
> WWW: http://www.shelterpub.com
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 27 Apr 2016 13:34:04 -0700
> From: Rick Gordon <email@hidden>
> To: Applescript-Users List <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> And the paths in the jsons are to the actual location, not the location
> of the symlink.
>
> ---------------------
> On 4/27/16, 1:30 PM, Rick Gordon wrote:
>> On my computer, I have 2 dropboxes, and there are 2 hidden folders,
>> each containing its own info.json, along with other items.
>>
>> ~/.dropbox and ~/.dropbox-Team/.dropbox
>>
>> In my case the visible Dropbox folders are located on a non-boot
>> drive, and have symlinks as ~/Dropbox and ~/Dropbox-Team.
>>
>> Rick Gordon
>>
>> ---------------------
>> On 4/26/16, 5:50 PM, Stockly, Ed wrote:
>>> Since the name is included with the path, this script doesn't care what
>>> the name is, and should work even if there are more than two (which,
>>> apparently, is possible).
>>>
>>> set dropBoxJsonFile to "~/.dropbox/info.json"
>>> tell application "System Events" to set dropBoxJsonFile to POSIX path of
>>> disk item dropBoxJsonFile
>>> set dropBoxInfo to read dropBoxJsonFile
>>> set AppleScript's text item delimiters to {"{\"path\": \"", "\",
>>> \"host\":
>>> "}
>>> set dropboxPaths to text items of dropBoxInfo
>>> set dropBoxPathList to {}
>>> repeat
>>> if the (count of dropboxPaths)< 2 then exit repeat
>>> set dropboxPaths to the rest of dropboxPaths
>>> set the end of dropBoxPathList to item 1 of dropboxPaths
>>> set dropboxPaths to the rest of dropboxPaths
>>> end repeat
>>> return dropBoxPathList
>>
>> ___________________________________________
>> RICK GORDON
>> EMERALD VALLEY GRAPHICS AND CONSULTING
>> ___________________________________________
>> WWW: http://www.shelterpub.com
>> _______________________________________________
>> 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
>
>
> ___________________________________________
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___________________________________________
> WWW: http://www.shelterpub.com
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 27 Apr 2016 13:41:47 -0700
> From: Rick Gordon <email@hidden>
> To: Applescript-Users List <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Being that you can't assume that the only valid path for the info.json
> is contained by ~/.dropbox, it might be better to do a search for
> dropbox.pid, which has the same somewhat-unique name in each folder, and
> negotiate the paths to the info.plist files from that.
>
> Rick Gordon
>
> ---------------------
> On 4/27/16, 1:34 PM, Rick Gordon wrote:
>> And the paths in the jsons are to the actual location, not the
>> location of the symlink.
>>
>> ---------------------
>> On 4/27/16, 1:30 PM, Rick Gordon wrote:
>>> On my computer, I have 2 dropboxes, and there are 2 hidden folders,
>>> each containing its own info.json, along with other items.
>>>
>>> ~/.dropbox and ~/.dropbox-Team/.dropbox
>>>
>>> In my case the visible Dropbox folders are located on a non-boot
>>> drive, and have symlinks as ~/Dropbox and ~/Dropbox-Team.
> ___________________________________________
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___________________________________________
> WWW: http://www.shelterpub.com
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 27 Apr 2016 13:49:28 -0700
> From: Rick Gordon <email@hidden>
> To: Applescript-Users List <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> It may be true, but I cannot confirm, that the desired info.json files
> may always be within the home folder.
>
> And I see now that the are actually both within a .dropbox folder, but
> the path for the 2nd is:
> ~/.dropbox-Team/.dropbox/info.json
>
> So searches could be for ".dropbox", but without the assumption that it
> is at the top level of the home folder.
>
> ---------------------
> On 4/27/16, 1:41 PM, Rick Gordon wrote:
>> Being that you can't assume that the only valid path for the info.json
>> is contained by ~/.dropbox, it might be better to do a search for
>> dropbox.pid, which has the same somewhat-unique name in each folder,
>> and negotiate the paths to the info.plist files from that.
> ___________________________________________
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___________________________________________
> WWW: http://www.shelterpub.com
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 27 Apr 2016 16:09:24 -0700
> From: Rick Gordon <email@hidden>
> To: Applescript-Users List <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> My unconfirmed assumption is that the paths might be defined as
> ~/.dropbox/info.json and ~/.dropbox*/.dropbox/info.json
>
> ---------------------
> On 4/27/16, 1:49 PM, Rick Gordon wrote:
>> It may be true, but I cannot confirm, that the desired info.json files
>> may always be within the home folder.
>>
>> And I see now that the are actually both within a .dropbox folder, but
>> the path for the 2nd is:
>> ~/.dropbox-Team/.dropbox/info.json
>>
>> So searches could be for ".dropbox", but without the assumption that
>> it is at the top level of the home folder.
> ___________________________________________
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___________________________________________
> WWW: http://www.shelterpub.com
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 28 Apr 2016 09:32:37 +1000
> From: Shane Stanley <email@hidden>
> To: AS users <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On 28 Apr 2016, at 6:41 AM, Rick Gordon <email@hidden> wrote:
>>
>> Being that you can't assume that the only valid path for the info.json is contained by ~/.dropbox
>
> This:
>
> <https://www.dropbox.com/en/help/4584>
>
> suggests you should be able to. If it's wrong, perhaps they should be nudged to update it.
>
> The existence of "official" instructions also suggests that asking Dropbox how to go about it might be better than everyone guessing.
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 27 Apr 2016 23:42:56 +0000
> From: "Stockly, Ed" <email@hidden>
> To: Shane Stanley <email@hidden>, AS users
> <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <D3469BAA.4022Aíemail@hidden>
> Content-Type: text/plain; charset=utf-8
>
> That's a good idea. They have an extensive section on their website for
> developers, with APIs for all sorts of things, including Javascript;
> SmallTalk; Ruby; etc. But, alas, no appleScript.
>
> I scanned through but didn't find any specific references to what we're
> trying to do (simply identify the location of all local dropbox folders),
> but Shane did :)
>
> I wonder what would happen if they started getting requests for an
> appleScript API?
>
> ED
>
>
>
>
>
> On 4/27/16, 4:32 PM,
> "applescript-users-bounces+ed.stockly=email@hidden on
> behalf of Shane Stanley"
> <applescript-users-bounces+ed.stockly=email@hidden on
> behalf of email@hidden> wrote:
>
>> On 28 Apr 2016, at 6:41 AM, Rick Gordon <email@hidden> wrote:
>>>
>>> Being that you can't assume that the only valid path for the info.json
>>> is contained by ~/.dropbox
>>
>> This:
>>
>> <https://www.dropbox.com/en/help/4584>
>>
>> suggests you should be able to. If it's wrong, perhaps they should be
>> nudged to update it.
>>
>> The existence of "official" instructions also suggests that asking
>> Dropbox how to go about it might be better than everyone guessing.
>>
>> --
>> Shane Stanley <email@hidden>
>> <www.macosxautomation.com/applescript/apps/>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> imes.com
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Thu, 28 Apr 2016 09:52:08 +1000
> From: Shane Stanley <email@hidden>
> To: AS users <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On 28 Apr 2016, at 9:42 AM, Stockly, Ed <email@hidden> wrote:
>>
>> I wonder what would happen if they started getting requests for an
>> appleScript API?
>
> You don't need anything AS specific: json is fine. All that's needed is clarification of where it/they is/are stored, and what the json contains. Part of the point of json is that it's language agnostic.
>
>> They have an extensive section on their website for
>> developers, with APIs for all sorts of things, including Javascript;
>> SmallTalk; Ruby; etc. But, alas, no appleScript.
>
> And there can't really be, because it doesn't support the sort of authentication required. It would be a massive security hole.
>
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>
>
>
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 27 Apr 2016 16:54:32 -0700
> From: Rick Gordon <email@hidden>
> To: AS users <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20160427/26e2b138/attachment.html>
>
> ------------------------------
>
> Message: 10
> Date: Wed, 27 Apr 2016 23:56:24 +0000
> From: "Stockly, Ed" <email@hidden>
> To: Shane Stanley <email@hidden>
> Cc: AS users <email@hidden>
> Subject: Re: Acquiring the Dropbox Folder Path -- was: Re: Error
> -10000 for one user
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> I don't see how AppleScript is more holey than JavaScript or those others but there's lots of things we could do if the local app was scriptable beyond this single issue.
>
> Sent from my iPhone
>
>> On Apr 27, 2016, at 4:52 PM, Shane Stanley <email@hidden> wrote:
>>
>>> On 28 Apr 2016, at 9:42 AM, Stockly, Ed <email@hidden> wrote:
>>>
>>> I wonder what would happen if they started getting requests for an
>>> appleScript API?
>>
>> You don't need anything AS specific: json is fine. All that's needed is clarification of where it/they is/are stored, and what the json contains. Part of the point of json is that it's language agnostic.
>>
>>> They have an extensive section on their website for
>>> developers, with APIs for all sorts of things, including Javascript;
>>> SmallTalk; Ruby; etc. But, alas, no appleScript.
>>
>> And there can't really be, because it doesn't support the sort of authentication required. It would be a massive security hole.
>>
>>
>> --
>> Shane Stanley <email@hidden>
>> <www.macosxautomation.com/applescript/apps/>
>>
>>
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
> End of AppleScript-Users Digest, Vol 13, Issue 191
> **************************************************
_______________________________________________
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