-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmount_drives.applescript
37 lines (29 loc) · 1.07 KB
/
mount_drives.applescript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Script Name : mount_drives
# Author : Craig Richards
# Created : 25th November 2012
# Last Modified :
# Version : 1.0
# Modifications :
# Description : This will mount the clone drive used in my Superduper clone
do shell script "diskutil mount /dev/disk4s2"
do shell script "diskutil mount /dev/disk4s3"
tell application "System Events"
set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0
end tell
if isRunning then
tell application id "com.Growl.GrowlHelperApp"
set the allNotificationsList to Â
{"Drives Mounted"}
set the enabledNotificationsList to Â
{"Drives Mounted"}
register as application Â
"Mount Clone Drives" all notifications allNotificationsList Â
default notifications enabledNotificationsList Â
icon of application "Script Editor"
-- Send a Notification...
notify with name Â
"Drives Mounted" title Â
"Drives Mounted" description Â
"I have Mounted your clone drives." application name "Mount Clone Drives"
end tell
end if