#1
|
|||
|
|||
Script Question
Hi, I was wondering if anyone could help me with my before-copy script. I just want to run an automator application.
#!/bin/sh osascript -e 'tell application "BeforeCopy" activate end tell' This doesn’t seem to be working. Thanks for your help. |
#2
|
||||
|
||||
You can't break lines in shell scripts like that. I'd suggest writing a small scpt that you can run with osascript instead.
__________________
--Dave Nanian |
#3
|
|||
|
|||
I tried to make it one line, but that didn't seem to make it work. I don't know what you mean by writing a script with osascript. Isn't that what I'm doing?
|
#4
|
||||
|
||||
What I'm suggesting is that you create -- with Script Editor -- the script that does what you want. Test it by running it. Once you're happy with it, save it as a .scpt, and run it with osascript (e.g. osascript the-script-name.scpt).
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Booting from backup | guruuno | General | 27 | 10-16-2009 11:53 PM |
Script question | patrickmast | General | 3 | 08-15-2007 11:00 AM |
YASQ (Yet Another Script Question) | Maxy | General | 7 | 03-16-2006 11:18 AM |
Question about exluding a directory in script | justanotheruser | General | 3 | 11-18-2005 11:17 AM |
Error: No space left on device | tradervic | General | 11 | 06-29-2005 04:50 PM |