Skip to content

Instantly share code, notes, and snippets.

@tejima
Created November 2, 2011 13:49
Show Gist options
  • Save tejima/1333667 to your computer and use it in GitHub Desktop.
Save tejima/1333667 to your computer and use it in GitHub Desktop.
スクリーンショットを撮ってDropboxに保存、そのURLをクリップボードにコピーするAutomator
delay 2
set DROPBOX_PATH to "/Users/tejima/Dropbox/Public/p/" as text
-- ↑PC内のDropboxのパスを指定"/Users/PCのユーザー名/Dropbox/Public/p/" などとする
set PUBLIC_PATH to "http://p.pne.jp/d/" as text
-- ↑Dropboxのパブリックリンク"http://dl.dropbox.com/u/DropboxのユーザーID/p/" などとする
set cqc_name to do shell script "date +\"%Y%m%d%H%M\"" & ".png"
do shell script "/usr/sbin/screencapture -s " & DROPBOX_PATH & cqc_name
set cqc_result to PUBLIC_PATH & cqc_name as text
set the clipboard to cqc_result
return cqc_result
@kashiwasan
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment