This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set theButton to button returned of (display dialog "10 digit code: " & randomNum() buttons {"Refresh", "Cancel", "OK"} with title ("10 Digit Code Generator")) | |
if theButton is "Refresh" then my repeatNum() | |
on randomNum() | |
set x to random number from 10000 to 99999 | |
set y to random number from 10000 to 99999 | |
set returnNum to (x & "-" & y) as text | |
end randomNum | |
on repeatNum() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
display dialog "Enter hits:" default answer "" | |
set runs to the text returned of the result | |
display dialog "Enter walks:" default answer "" | |
set walks to the text returned of the result | |
display dialog "Enter innings:" default answer "" | |
set inning to the text returned of the result | |
set inningMod to inning mod 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- User input 1 | |
display dialog "Enter the runs scored:" default answer "" | |
set runsScored to the text returned of the result | |
set fullGameRuns to runsScored * 9 | |
-- User input 2 | |
display dialog "Enter the lenth the picher has pitched (in decimal):" default answer "" | |
set inning to the text returned of the result | |
-- Determine if decimal, covert properly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scptName = "Export PDFs" | |
var scptVersion = "v1.6.1" | |
var g = {}; | |
var d = app.activeDocument; | |
var pageCount = d.pages.length; | |
main(); | |
function main() { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.menuActions.itemByID(24332).invoke(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------- | |
# EPUB MANAGEMENT | |
# ------------------------------- | |
# KF8 | |
# ------------------------------------------------------------ | |
alias mkkf8='cd OEBPS;kindle29;mv content.mobi ../../Amz_KF8_v$(date +'%Y%m%d-%H%M%S').mobi; cd ../..; mv *.mobi ~finals; cd ~finals; open "`ls -t | grep .mobi | head -1`"' # adds incrementing number to file name an$ | |
alias kindle29='echo -e "\n\n/* ----- KindleGen 2.9 ----- */\n";/Volumes/Active/ScriptsLibrary/bin/kindlegen2.9/kindlegen content.opf -c2 -verbose' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------- | |
# ENVIRONMENT CONFIGURATION | |
# ------------------------------- | |
# Change Prompt | |
# ------------------------------------------------------------ | |
shopt -s extglob #needed for strc alias, formerly the ext alias | |
export PS1='\W > ' #default '\h:\W \u$ ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/.bashrc ] ; then | |
source ~/.bashrc | |
fi |