![]() ![]() If you don’t care who sees your static user number the job is simple to do with basic AppleScript. So, if you’re giving the link to someone else the scripted method is going to be better, because it anonymizes the link just like the latter example. Here’s what a link from the Dropbox site looks like: Here’s what a public link copied from the Finder using Copy-Public-Link looks like (I’ve changed the user-number): However it’s pretty pointless to use Dropbox’s UI for this, because the result can be easily duplicated. Tell menu button 1 of group 6 of toolbar 1 Set frontWin to (first window whose role is "AXWindow") (This is tested on 10.10.4 - different versions of OSX can have subtle or not so subtle variations.) tell application "System Events" This won’t be quite right, because the parameters depend upon where you put the Dropbox button in the toolbar. Nevertheless if you want to install the Dropbox toolbar-button it’s pretty easy. ![]() Scripting the contextual-menu with System Events is broken in list-view but seems to work in icon-view. What about using AppleScript to have the Finder execute the “Copy Public Link” context menu item? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |