Re: applescript-users digest, Vol 3 #735 - 14 msgs
Re: applescript-users digest, Vol 3 #735 - 14 msgs
- Subject: Re: applescript-users digest, Vol 3 #735 - 14 msgs
- From: Steve Herman <email@hidden>
- Date: Wed, 14 Aug 2002 15:13:07 -0500
At 08:06 pm +0100 14/8/02, John Delacour wrote:
>
At 12:34 pm -0500 13/8/02, Steve Herman wrote:
>
>Is it possible to move a file into an invisible folder using plain vanilla
>
>AppleScript (OS 9.x)?
>
>
>
>I can get an alias to the "Cleanup At Startup" folder, but so far I haven't
>
>been able to get the syntax correct to move a file into it... When I do
>
>the move outside a tell block I get an error that the file doesn't
>
>understand the move command, and if I tell Finder to move the file, Finder
>
>tells me the invisible folder doesn't exist.
>
>
>
I don't know whether it's possible -- it doesn't seem to be -- and I
>
don't know why I'd ever want to do it, but it is possible to _create_
>
a file in an invisible folder as the script below demonstrates. I'm
>
confined to 8.6 for a couple of days, so I don't know about the
>
folder you mention.
>
"Cleanup At Startup" is an invisible folder at the root of the startup
volume that has supposedly existed since OS 8. Items placed in this folder
are automatically deleted at the next restart (as opposed to items placed
in the "Temporary Items" folder which simply get moved to the Trash).
I've got sort of a two part Installer. The first part (which is not an
Applescript) installs several items and also puts an AppleScript into the
"Startup Items" along with a data file the script uses in "Application
Support". The Installer then triggers a restart. The restart kicks off my
AppleScript which uses the datafile to do some additional configuration.
Once my AppleScript finishes it's configuration, I'd like to be able to
have it move itself along with it's data file into "Cleanup At Startup" (ie
- it just needs to run once and then go away). This is what I can't get
working seemingly because the folder is invisible.
I know I can move the script and it's file to the Trash, but I just thought
making use of "Cleanup At Startup" would be the nicer way of cleaning up
after myself.
Steve
--
+-------------------------------------------------------+
| Steve Herman |
| Macintosh Software Development and Support |
| Lockheed Martin Information Technology NASA-ODIN |
| 102 Research Blvd, Bldg 2 |
| Madison, AL 35758 (voice) 256 319-2869 |
|
mailto:email@hidden (fax) 256 319-2984 |
+-------------------------------------------------------+
_______________________________________________
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.