Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
open geth and remix in tabs via applescript
-- osascript services.scpt
tell application "iTerm 3"
activate
set myterm to (create window with default profile)
tell myterm
set mysession to (current session)
tell mysession
set name to "geth"
write text "cd ~/projects/fs/newline/newline-content-internal/fullstack-web3/private-net"
write text "./bin/geth --datadir=./datadir --nodiscover --rpc --rpcapi \"db,personal,eth,net,web3,debug\" --rpccorsdomain='*' --rpcaddr=\"localhost\" --rpcport 8545 --ws --wsapi \"db,personal,eth,net,web3,debug\" --wsorigins='*' --wsaddr=\"localhost\" --wsport 8546 console"
write text "loadScript(\"./scripts/mine-only-when-transactions.js\")"
end tell
create tab with default profile
tell (current session)
set name to "remixd"
write text "cd ~/projects/fs/newline/newline-content-internal/fullstack-web3/cloq"
write text "remixd -S ."
end tell
create tab with default profile
tell (current session)
set name to "remix"
write text "cd ~/programming/eth/browser-solidity"
write text "npm-run-all -lpr serve"
end tell
create tab with default profile
tell (current session)
write text "open http://localhost:8080/"
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.