Help please
Help please
- Subject: Help please
- From: Amir Bozorgzadeh <email@hidden>
- Date: Thu, 14 Nov 2002 13:40:57 -0600
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.