Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on run argv
- set argCount to count of argv
- try
- set varMessage to ((item 1 of argv) as text) -- notification
- set varNotification to ((item 2 of argv) as text) -- title
- set varHeadline to ((item 3 of argv) as text) -- subtitle
- set varSoundName to ((item 4 of argv) as text) -- sound name
- end try
- if argCount = 1 then
- display notification varMessage
- else if argCount = 2 then
- display notification varMessage with title varHeadline
- else if argCount = 3 then
- display notification varMessage with title varHeadline subtitle varNotification
- else if argCount = 4 then
- display notification varMessage with title varHeadline subtitle varNotification sound name varSoundName
- end if
- end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement