Monday, October 26, 2020

#1 2020-01-16 07:38:52 am

Registered: 2019-10-23
Posts: 416

Clone of specific repository from Github

This is a Folder Script for Safari copy to ~/Library/Scripts/Applications/Safari
Note: It use git command-line tool, so you need to have that installed in your machine. 

Quick way to get what you want at GitHub


-- AppleScript to clone git repository, git -C DestinationPath clone URL
-- Destination: Home/Desktop/AppleScriptFolder
on run
   tell application "Safari"
       set thisDocument to document of front window
       set thisURL to URL of thisDocument
   end tell
   set thePath to POSIX path of (path to desktop folder) & "AppleScriptFolder/"
   do shell script "git -C " & quoted form of thePath & space & "clone" & space & thisURL
end run

I could teach you to cook but I couldn't do anything if you do not have desire or commitment for it.



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)