Re: simple applescript help needed
Re: simple applescript help needed
- Subject: Re: simple applescript help needed
- From: Craig Sutherland <email@hidden>
- Date: Thu, 19 Sep 2002 21:51:58 -0500
John,
It has been a while since working with ramdisks, so I'm groping in the
dark. Is the ramdisk created and available in time to be recognized by
your script? If the script runs and the duo is still in process of
creating the disk, then some error checking is in order.
You can create a stay open script which runs in the background then, at
an interval you determine, checks to see if the ramdisk is created and
available. If the ramdisk is available, then have the script copy the
files/folders to it.
There is an excellent explanation/abstract of creating a stay open
script that periodically performs a task ( called onIdle at the
following reference source) at www.applescriptsourcebook.com. Also
<www.MacScripter.net> has a searchable archive that will have examples
of the pieces that will combine to make your script work.
A synopsis of your script might be:
Launch stay open/onIdle script as StartUp item
Set onIdle "checking" interval to say... 30 sec.
Every 30 sec. the script checks for a condition to be met
Which is
If ramdisk exists
copy files
check to see if files copied
exit script
HTH
Craig Sutherland
On Thursday, September 19, 2002, at 01:33 PM, John Slavin wrote:
Hello all:
I'm new to using applescript. I need to write a simple script for an
old Powerbook duo running os 8. I need at startup for the finder to
copy a folder to my ramdisk. I tried to have the script editor learn
the drag and drop of copying the file to the ramdisk and then saved
the script and put it in my startup items, but it didn't work. when
the computer starts up it asks if I want to run the script, but then
nothing happens. The ramdisk is still empty.
Any ideas for a real newbie?
John Slavin
Kirksville, MO
email@hidden
_______________________________________________
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.
_______________________________________________
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.