Deliveries App Scripts

Deliveries is a great little Mac and iOS app for tracking deliveries. I have no affiliation with them.

The app doesn’t have any real AppleScript support, but this worked. I’m not sure if it’s the ideal way to handle it though.

Get Name:
tell application “System Events” to tell process “Deliveries”
click menu item “Copy” of menu 1 of menu bar item “Edit” of menu bar 1
end tell
delay 0.05
– Clipboard now contains something like: “Name: TRACKINGNUMBER URL”
set theString to (the clipboard as text)
set theName to text 1 thru ((offset of “http” in theString) - 1) of theString
return theName

Get Address:
tell application “System Events” to tell process “Deliveries”
click menu item “Copy” of menu 1 of menu bar item “Edit” of menu bar 1
end tell
delay 0.05
– Clipboard now contains something like: “Name: TRACKINGNUMBER URL”
set theString to (the clipboard as text)
set theURL to text (offset of “http” in theString) thru end of theString
return theURL

1 Like

Thanks for this! We have updated Hook’s Script server accordingly to work with Deliveries 3 for Mac.