way to identify currently running script?
way to identify currently running script?
- Subject: way to identify currently running script?
- From: Current Resident <email@hidden>
- Date: Wed, 10 Jul 2002 12:01:05 -0700
Hi--
Is there a way to identify the name of the currently running script? I know
that sounds a little vague, so here's the situation: I have a script called
CleanupScript, that routinely deletes certain files from the machines in
our lab (among other things). When I make changes to the script, I change
the name slightly (you know, like it changes from "Cleanup Script v1.2" to
"Cleanup Script v1.3"). What I would really like it to do is to delete
older versions of the script. What I have it doing now is selecting ALL
version of the script (they are always on the desktop) and moving them to
the trash. I had thought that a hack would be to simply empty the trash
(b/c it wouldn't delete an app that is running), and then move any versions
of the script left in the trash back to the desktop. (You see that I didn't
use the word "hack" lightly.) But that doesn't work--what I end up with is
all of the older versions back on the desktop again. Don't know what's up
with that. Is there a way I can move just the currently running script back
out to the desktop? Preferably before an attempt to empty the trash. :)
--matt.
Integrity has no need of rules.
Albert Camus
mailto:email@hidden
http://www.creighton.edu/~spoko/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.