Skip to content

Instantly share code, notes, and snippets.

@ANNotunzdY
Last active December 11, 2015 21:39
Show Gist options
  • Save ANNotunzdY/4664093 to your computer and use it in GitHub Desktop.
Save ANNotunzdY/4664093 to your computer and use it in GitHub Desktop.
on run
tell application "BathyScaphe"
if class of front document is document then
set temptext to thread URL of front document
set temprecoad to thread attributes of front document
else
beep
end if
end tell
set AppleScript's text item delimiters to "/"
set temparray to text items of temptext
tell application "Safari"
open location ("http://p2.2ch.net/p2/post_form.php?host=" & item 3 of temparray & "&bbs=" & item 6 of temparray & "&key=" & item 7 of temparray & "&rescount=" & (get |Count| of temprecoad))
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment