Guest User

Untitled

a guest
Jun 3rd, 2018
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. ## Update Status from selection
  2.  
  3. #Configure your details here:
  4. user='user@domain.com'
  5. pass='password'
  6. "$TM_BUNDLE_SUPPORT"/bin/twitter.sh "$user" "$pass" "$TM_SELECTED_TEXT (from TextMate)" &
  7.  
  8. ## Update Status
  9.  
  10. #Configure your details here:
  11. user='user@domain.com'
  12. pass='password'
  13.  
  14. res=$(CocoaDialog inputbox --title "Twitter from TextMate" \
  15. --informative-text "What are you doing?" \
  16. --button1 "OK" --button2 "Cancel")
  17.  
  18. [[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
  19. res=$(tail -n1 <<<"$res")
  20. "$TM_BUNDLE_SUPPORT"/bin/twitter.sh "$user" "$pass" "$res (from TextMate)" &
Add Comment
Please, Sign In to add comment