Re: Internet Connect Script
Re: Internet Connect Script
- Subject: Re: Internet Connect Script
- From: yvan-koenig <email@hidden>
- Date: Sat, 5 Feb 2005 17:53:26 +0100
Le 20 janv. 2005 , à 3:14, Gnarlodious a écrit :
Entity Amir Bozorgzadeh spoke thus:
connect using a configurationa lready set up in the machine.
tell application "Finder"
activate
tell application "System Events"
tell process "Finder"
tell menu bar 1
tell menu bar item "Apple"
tell menu "Apple"
tell menu item "Location"
tell menu "Location"
click menu item "Automatic"
--location name
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
May I write that it would be fine to take care of the fact that most of
cocoa app are self-localisable.
With some mods easy to introduce, any script may be usable worldwide
which is not the case with your original one:
tell application "Finder"
activate
tell application "System Events"
tell process "Finder"
tell menu bar 1
-- set aa to get name of every menu bar item
(*
{"Apple", "Finder", "Fichier", "Édition",
"Présentation", "Aller", "Fenêtre", "Aide"}
*)
set nmbai to (name of menu bar item 1) as text
tell menu bar item nmbai --"Apple"
tell menu nmbai --"Apple"
-- set bb to name of every menu item
(*
{"À propos de ce Mac", "Mise à jour de logiciels…", "Logiciels
Mac OS X…",
missing value, "Préférences Système…", "Dock", "Configuration
réseau",
missing value, "Éléments récents", missing value, "Forcer à
quitter…",
"Forcer à quitter Finder", missing value, "Suspendre l’activité",
"Redémarrer…", "Redémarrer", "Éteindre…", "Éteindre", missing
value,
"Fermer la session Yvan KOENIG…", "Fermer la session Yvan KOENIG"}
*)
set nmi to (name of menu item 7) as text
tell menu item nmi --"Location"
tell menu nmi --"Location"
-- set cc to get name of every menu item
(*
{"Automatic", "Configuration (06/11/2004 18:22)",
missing value, "Préférences de Réseau..."}
*)
set nmi to (name of menu item 1) as text
click menu item nmi --"Automatic" --location name
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
Yvan KOENIG (from FRANCE)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden