MotorolaWorldwide
Search
Service ProvidersBusinessConsumers

Installer Observer PPC Applescript

Script #1 - For OS 9.0 and higher (and OS 8.6 with Appletalk file sharing)

property xIsAppleShareIPServer : true



property xServerVolume : "My Server Volume" -- the volume name on the server

property xUsername : "My Username" -- for guest access leave blank

property xPassword : "My Password" -- for guest access leave blank



-- this is only used when xIsAppleShareIPServer is true

property xServerPath : "afp://192.168.1.1"



-- this is only used when xIsAppleShareIPServer is false

property xServer : "My Server"

property xAppleTalkZone : "My Appletalk Zone"



if xIsAppleShareIPServer then

   mount volume (xServerPath & "/" & xServerVolume) as user name xUsername with password xPassword

else

   mount volume xServerVolume on server xServer in AppleTalk zone xAppleTalkZone as user name xUsername with password xPassword

end if



tell application "Installer Observer PPC"

   InstallPackage "My Server Volume:My Package"

   quit

end tell



tell application "Finder"

   put away disk xServerVolume

end tell


Script #2 - For OS 8.5.1 and below


property xServerVolume : "My Server Volume" -- the volume name on the server

property xServer : "My Server"

property xAppleTalkZone : "My Appletalk Zone"



mount volume xServerVolume on server xServer in AppleTalk zone xAppleTalkZone



tell application "Installer Observer PPC"

   InstallPackage "My Server Volume:My Package"

   quit

end tell



tell application "Finder"

   put away disk xServerVolume

end tell






www.motorola.com  |  Terms of Use  |  Privacy Statement   |  Media Center  |  Site Map  |  Contact Us
© 2008 Netopia, Inc., a Motorola Company. All rights reserved.