Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Changes in OSX Kill Script
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 15th November 16:23
tom connelly
External User
 
Posts: 1
Default Changes in OSX Kill Script



I was recently upgraded to a new Mac with the Tiger OS
(and have very few complaints about this!). However, a
script I used to use in Filemaker 6 has stopped working.

This was a script (which utilised Applescript within it)
to switch printers (to print to a label printer) and then switch
back to the main Laser printer. The script was simple, along
the lines of 'Tell Applescript ["tell application "Print Center"
set myprinter to printer "PET" set current printer to myprinter
end tell"]. Alas, it seems that the Tiger OS does not have
an application called 'Print Center' any more so the switch
does not work.

Has anyone who uses two printers with OS Tiger met and
solved this problem with Applescript and can perhaps point
me in the right direction for a solution?

Many thanks,
Tom
  Reply With Quote


 


2 15th November 16:27
patrick stadelmann
External User
 
Posts: 1
Default Changes in OSX Kill Script



Did you try "Printer Setup Utility" instead of "Print Center" ? Patrick --
Patrick Stadelmann <Patrick.Stadelmann@unine.ch>
  Reply With Quote
3 15th November 16:32
dave balderstone
External User
 
Posts: 1
Default Changes in OSX Kill Script


tell application "Printer Setup Utility"
set current printer to printer "PET"
end tell

--
~ Stay Calm... Be Brave... Wait for the Signs ~ ------------------------------------------------------
One site: <http://www.balderstone.ca>
The other site, with ww links<http://www.woodenwabbits.com>
  Reply With Quote
4 15th November 16:43
tom connelly
External User
 
Posts: 1
Default Changes in OSX Kill Script


Hi Patrick,

Good suggestion - this worked.

Many thanks, Tom
  Reply With Quote
5 15th November 16:47
tom connelly
External User
 
Posts: 1
Default Changes in OSX Kill Script


Hi Dave,

Thanks for the information. I tried this and it
worked fine.

Many thanks,
Tom
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666