郵便の再配達申込の自動入力Applescript

 郵便局の不在通知が届いていたときに再配達申込が楽になるApplescript。
 まず、郵便番号と問い合せ番号は自分で入力してね。
  no img
 次の画面でApplescriptを使います。
  no img
tell application "Safari"
activate
if URL of document 1 starts with "https://trackings.post.japanpost.jp/" or URL of document 1 starts with "https://trackings.post.japanpost.jp/" then
do JavaScript "document.deli_deliveryDetailHomeActionForm.clientTelNoArea.value='TEL1'" in document 1 do JavaScript "document.deli_deliveryDetailHomeActionForm.clientTelNoCityExchange.value='TEL2'" in document 1 do JavaScript "document.deli_deliveryDetailHomeActionForm.clientTelNoMember.value='TEL3'" in document 1 do JavaScript "document.deli_deliveryDetailHomeActionForm.clientExtensionNo.value='内線'" in document 1 do JavaScript "document.deli_deliveryDetailHomeActionForm.clientName.value='名前'" in document 1 do JavaScript "document.deli_deliveryDetailHomeActionForm.emailAddr.value='メールアドレス'" in document 1 do JavaScript "document.deli_deliveryDetailHomeActionForm.emailAddrConfirm.value='メールアドレス'" in document 1 else
display dialog "アドレスが違うよ" buttons {"Yes!", "ウホッ!", "マジで?"} default button 1
end if
end tell
 内線は空欄でも可能。
2014/3/17

 PC表示に切替     スマホ表示に切替     タブレット表示に切替