Skip to content

Instantly share code, notes, and snippets.

View zurdors's full-sized avatar

Gaspar Reyes Póndigo zurdors

View GitHub Profile
@sillygwailo
sillygwailo / Open in Chrome from Safari.scpt
Created September 23, 2011 07:16
Open in Chrome from Safari and vice versa
-- from http://www.tuaw.com/2011/03/14/use-applescript-to-open-current-safari-url-in-google-chrome/
-- install FastScripts http://www.red-sweater.com/fastscripts/ and place this AppleScript in the Scripts applications folder for Google Chrome.
-- For me that was ~/Library/Scripts/Applications/Safari
-- You can then assign it a keyboard shortcut. I went with Cmd-Shift-C
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
tell application "Google Chrome"
@kyledecot
kyledecot / gist:2782141
Created May 24, 2012 15:11
Alias for opening current directory in Coda 2
alias coda='open -a /Applications/Coda\ 2.app .'
@ecurbelo
ecurbelo / gist:2850378
Created June 1, 2012 08:35 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@SeanPONeil
SeanPONeil / .bash_prompt
Created September 13, 2012 20:05
Sexy Solarized Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Sexy Solarized Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Customized for the Solarized color scheme by Sean O'Neil
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then TERM=gnome-256color; fi
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
BASE03=$(tput setaf 234)
BASE02=$(tput setaf 235)
BASE01=$(tput setaf 240)
@brandonpittman
brandonpittman / EvernoteTitleAppend.applescript
Last active August 8, 2016 20:21
This AppleScript will append text to the title of the selected notes in Evernote.
tell application "System Events"
set the_dialog to display dialog "What would you like to append to the selected notes?" default answer ""
set append_text to text returned of the_dialog
end tell
tell application "Evernote"
@beauvais
beauvais / just_type.scpt
Created June 12, 2013 18:48
AppleScript to tell iA Writer to create a new document, insert "Just Type:", and set itself to Zen Mode.
set s to "Just type:" & return & "---" & return
activate application "iA Writer"
tell application "iA Writer"
make new document
activate
delay 0.2
tell application "System Events" to keystroke s
tell application "System Events" to keystroke "d" using command down
tell application "System Events" to keystroke "f" using {command down, control down}
@brandonpittman
brandonpittman / EvernoteBatchRename.applescript
Last active March 30, 2021 07:49
Batch Rename Evernote Notes
tell application "Evernote"
set the_notes to selection
set the_dialog to display dialog "What would you like to title these notes?" default answer ""
set the_title to text returned of the_dialog
set the_count to 1
@dinge
dinge / gist:6983008
Created October 14, 2013 22:05
calling applescript from ruby
def osascript(script)
system 'osascript', *script.split(/\n/).map { |line| ['-e', line] }.flatten
end
osascript <<-END
tell application "Finder"
display dialog "Hello"
end tell
END
@rxaviers
rxaviers / gist:7360908
Last active May 5, 2024 08:25
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@zholmquist
zholmquist / Hazel + Evernote Logging
Last active May 19, 2017 00:39
Hazel Embedded AppleScript that logs filename to Evernote. I use this in a script that cleans up my Desktop and Downloads and files everything away.
tell application "Evernote"
tell application "Finder" to set file_name to (name of theFile)
set time_string to do shell script "date '+%H:%M:%S'"
set date_string to do shell script "date '+%Y-%m-%d'"
set message to "<p><b>" & time_string & "</b> | Moved <em>" & file_name & "</em></p>"
set matches to find notes date_string & " notebook:Log"
if (count of matches) is 1 then
set the_note to item 1 of matches