• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
way to identify currently running script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: way to identify currently running script?
      • From: Rob Jorgensen <email@hidden>
    • Re: way to identify currently running script?
      • From: Emmanuel <email@hidden>
  • Prev by Date: do shell script administrator privileges bug?
  • Next by Date: Re: scripting a weekly download
  • Previous by thread: Re: do shell script administrator privileges bug?
  • Next by thread: Re: way to identify currently running script?
  • Index(es):
    • Date
    • Thread