• 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
Home directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Home directory


  • Subject: Home directory
  • From: Adrien FRANCOIS <email@hidden>
  • Date: Tue, 02 Mar 2004 08:54:50 +0100

Hello,

To update the following script for MAC OS X, I need to know how is called
the home directory on OS X.

It is important to applicate the script for each different users to verify
if the folder "Donnies utilisateur AppleWorks" of folder "Documents" of
3Home Directory2 exist. But I do not know how we call the home directory on
mac OS X. It must be easy but I do not found it in the help.

Thank you for your help.



tell application "Finder"
activate
if (exists folder "Donnies utilisateur AppleWorks" of folder "Documents"
of startup disk) then
select folder "Donnies utilisateur AppleWorks" of folder "Documents"
of startup disk
delete selection
end if
if (exists file "Ancienne base de donnies" of folder "Identiti
principale" of folder "Utilisateur(s)-Outlook Express" of folder "Outlook
Express" of folder "_Logiciels" of startup disk) then
select file "Ancienne base de donnies" of folder "Identiti
principale" of folder "Utilisateur(s)-Outlook Express" of folder "Outlook
Express" of folder "_Logiciels" of startup disk
delete selection
end if
if (exists file "Anciens messages" of folder "Identiti principale" of
folder "Utilisateur(s)-Outlook Express" of folder "Outlook Express" of
folder "_Logiciels" of startup disk) then
select file "Anciens messages" of folder "Identiti principale" of
folder "Utilisateur(s)-Outlook Express" of folder "Outlook Express" of
folder "_Logiciels" of startup disk
delete selection
end if
if (exists file "Old Database Cache" of folder "Identiti principale" of
folder "Utilisateur(s)-Outlook Express" of folder "Outlook Express" of
folder "_Logiciels" of startup disk) then
select file "Old Database Cache" of folder "Identiti principale" of
folder "Utilisateur(s)-Outlook Express" of folder "Outlook Express" of
folder "_Logiciels" of startup disk
delete selection
end if
end tell
--
Adrien FRANCOIS
Micro et Riseaux - Support

Direction des systhmes d9information
Centre Hospitalier de Rouffach
27, rue du 4hme RSM
F- 68250 ROUFFACH
Tel : +33 (0)3 89 78 71 82
Fax : +33 (0)3 89 78 74 35

Courriel : email@hidden
Web : http://www.ch-rouffach.fr
_______________________________________________
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: Home directory
      • From: Richard Morton <email@hidden>
    • Re: Home directory
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Auto field fill-in for Safari?
  • Next by Date: Re: Home directory
  • Previous by thread: Re: Text parsing
  • Next by thread: Re: Home directory
  • Index(es):
    • Date
    • Thread