Re:Help please
Re:Help please
It's possible to do it, but you'll still have to launch manually the script when you're login in or when starting the computer( which can be made automatical). All you've to do is to enclose your previous script in an
on idle
if "Microsfot Word" is in application processes then
-- here you must place your script
end
return xx -- xx is the amout of second to wait before a new check
end
Jean-Baptiste LE STANG
---------- Initial Header -----------
From : email@hidden
To : email@hidden
Cc :
Date : Thu, 14 Nov 2002 13:40:57 -0600
Subject : Help please
>
I am writing a simple script to delete a preference file from a users
>
home directory. Thanks to this list I finally have it working but I
>
am now presented with another problem. How can I attach this so that
>
it runs after Word is closed? Is there a way to do this? Or having it
>
run when Word is launched is even better. The reason is that the
>
students in the lab may not launch word from my script but most will
>
probably launch Word from a file that is already created. Here is the
>
script that works now but I will rewrite if I can figure out how to
>
attach it to the application Word.
>
>
tell application "Finder"
>
try
>
delete file "Office Registration Cache X" in folder
>
"Microsoft" of folder "Preferences" of folder "Library" of folder
>
(path to current user folder)
>
empty trash
>
end try
>
end tell
>
>
Essentially my thought was is there a way I can attach it to the
>
application Word so that every time it launches it runs this script.
>
Thanks.
>
--
>
__________________________________________________
>
Amir Bozorgzadeh
>
ITS - DSG
>
5 Lindquist Center
>
University of Iowa
>
319-335-5480
>
_______________________________________________
>
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.
>
-------------
SPECIAL ADSL
L'ADSL Tiscali est ` partir de 15,95 EUR/mois ! Plus modem ADSL et frais d'activation gratuits !
Pour profiter de cette offre, cliquez ici:
http://register.tiscali.fr/adsl/
Offre soumise ` conditions.
_______________________________________________
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.