scripts bumping into other scripts
scripts bumping into other scripts
- Subject: scripts bumping into other scripts
- From: Richard Allaway <email@hidden>
- Date: Thu, 20 Oct 2005 16:41:51 -0400
Dear list,
I think these statements are true:
1. Some applications don't support the "with transaction" block
2. Some of those same applications require a document to be frontmost in order to perform some of their functions
3. Often scripts are activated by events outside of the author's control (for example, by a file appearing in a folder with a folder action applied to it)
4. Sometimes, say with scripts activated by cron, one script will overrun its allotted time and attempt to run again while the previous instance is still active
5. If two scripts try to tell the same application to do two different things at the same time (and nothing is done to stop one of them) the results will be unfortunate (and possibly make the scripter appear foolish in the eyes of his coworkers)
Sometimes my scripts, well, they argue.
I can think of lots of workarounds for statement 5, but it seems to me I shouldn't have to. At the moment, I make sure to run all the scripts that use certain applications from one master script application that itself runs every few minutes (and only if System Events tells it that it isn't already running.) But I'd prefer to group my scripts by what they do, not by which application they happen to make use of to do it.
Am I misunderstanding something? Is there some obvious technique that everyone else knows about and you're all sniggering quietly while you read this?
By the way, I hear statement 2 (see above) often isn't true for those same applications when they are controleld by VBA
Anyone? I didn't mention photoshop this time... Ah, Whoops.
Richard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden