Sha256: d56bd1b1a0911a7f41267d254a5db900307a6de66fb228bede16df63f9e8990f

Contents?: true

Size: 656 Bytes

Versions: 4

Compression:

Stored size: 656 Bytes

Contents

echo '
on run argv
  if length of argv is equal to 0
    set command to ""
  else
    set command to item 1 of argv
  end if
  if length of argv is greater than 1
    set profile to item 2 of argv
    runWithProfile(command, profile)
  else
    runSimple(command)
  end if
end run
on runSimple(command)
  tell application "Terminal"
    activate
    set newTab to do script(command)
  end tell
  return newTab
end runSimple
on runWithProfile(command, profile)
  set newTab to runSimple(command)
  tell application "Terminal" to set current settings of newTab to (first settings set whose name is profile)
end runWithProfile
' | osascript - "$@" > /dev/null

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
XSpear-1.4.1 forBurp/otwa.sh
XSpear-1.4.0 forBurp/otwa.sh
XSpear-1.3.3 forBurp/otwa.sh
XSpear-1.3.2 forBurp/otwa.sh