郵便の再配達申込の自動入力Applescript
郵便局の不在通知が届いていたときに
再配達申込が楽になるApplescript。
まず、郵便番号と問い合せ番号は自分で入力してね。
次の画面でApplescriptを使います。
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