Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Scripts (https://www.shirt-pocket.com/forums/showthread.php?t=1151)

dnanian 03-16-2006 06:47 PM

Mark --

Try simplifying things. Open Script Editor, and then JUST put in:

do shell script "diskutil mount disk0s5"

Run that. Does it work?

MarkW19 03-17-2006 07:30 PM

Quote:

Originally Posted by dnanian
Mark --

Try simplifying things. Open Script Editor, and then JUST put in:

do shell script "diskutil mount disk0s5"

Run that. Does it work?

Yes it does :)

dnanian 03-17-2006 07:46 PM

Well, then, it should certainly work "live". You might want to do a "display dialog" in there, or something to show that it's running. If not, are you certain that you're recompiling it by changing your schedule?

MarkW19 03-17-2006 07:56 PM

I just did this, and again it didn't mount the disk (then superduper quits after approx 5 secs):-

-- SuperDuper! scheduled copy script template (c) 2005-2006 by Bruce Lacey. Published by Shirt Pocket.
-- Script by Dave Nanian and Bruce Lacey

on beforeRunningCopy()
do shell script "diskutil mount disk0s5"
end beforeRunningCopy

on afterRunningCopy()
do shell script "diskutil unmount disk0s5"
end afterRunningCopy

MarkW19 03-17-2006 07:57 PM

Yes I am recompiling by editing the schedule (I know this because occasionally when I've got the syntax wrong etc. then after "editing" the schedule it says there's a script error).

dnanian 03-17-2006 08:21 PM

Try telling Finder or System Events to do the shell script. So:

tell application "System Events" to do shell script ...

MarkW19 03-17-2006 08:30 PM

Yes!! It's worked!!

Good work Dave :)

dnanian 03-18-2006 01:36 AM

Yay! Finally... (whew)


All times are GMT -4. The time now is 05:24 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.