Re: Moving printers
Re: Moving printers
- Subject: Re: Moving printers
- From: Jan Cobb <email@hidden>
- Date: Wed, 28 Feb 2001 22:06:37 +0000
(Dateline: 26/2/01 10:02 PM) Amir Bozorgzadeh wrote:
>
I am trying to move a desktop printer into a folder called Printers within
>
the sytem folder at startup. Is there a way to do this and what would be
>
the syntax. I have tried to use apple's help but am having trouble creating
>
the path.
>
<snipped>
I, too, used the Help application and played around until I got this script
to work (just make the name of the new folder whatever you want):
tell application "Finder"
activate
--next 2 lines are really just one in the script
set NewFoldPath to (make new folder at system folder of startup disk
with properties {name:"Desktop Printers"}) as alias
end tell
tell application "Desktop Printer Manager"
set the container of every desktop printer to the NewFoldPath
end tell
You can use the Help example to move the printers back again at a later date
and, if you want to play around, you can check for the existence of the
folder before making it (to avoid an error) and (perhaps) have your script
toggle between the 2 locations.
Janette Cobb
84 Christchurch Street
IPSWICH
IP4 2DE
Tel: +44(0)1473 421385
Fax: +44(0)1473 421386 (Weekdays, 0730 - 1700 only)
Mobile: +44(0)7850 435842
ICQ# 75156560