Link to home
Start Free TrialLog in
Avatar of EaglePress
EaglePress

asked on

Make an AppleScript from a MS-DOS batch file

I have a MS-DOS .bat (batch file) that I would like to convert in order to use on a Mac OSX as an applescript.  Here is the .bat file:

copy %1 \\computer_name\printer_share_name
exit

Basically this allows the user to send a file to the shared printer that is located on a windows PC withouth having to map drives, and configure IP printing.  The actual .bat file is:

copy %1 \\rip2\10in_2
exit

Thanks for any assistance.
Avatar of ozo
ozo
Flag of United States of America image

How would you send a file to the shared printer from the Mac without AppleScript?
Avatar of EaglePress
EaglePress

ASKER

Currently, I am using AppleTalk with a 3rd party app (PC MacLAN) running on the windows machines that host the shared printers.  PC MacLAN makes the windows printers appear as apple printers.  I have the shared printerd configured on the mac normally.
Here is the catch.  The files that I am having to send to the printer are .ps (post script) files. And the printer is actually an Imagsetter plate making maching that produces plates that are used on printing presses.  Now without going into a bunch of meaningless details, the Imagesetter appears and is treated like a normal paper (laserjet) network printer.
When attempting to send the .ps files to the printer by just dragging the .ps file to the printer the file is not processed correctly.  I was hoping that using a applescript on the mac will give me the same results as the batch file on the PC.

But to answer you question...I just drag the file to the printer description within the printer list.  On the pc i just drag the file to the .bat file that then copies the file to the shared printer.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Duffy
Andrew Duffy
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial