OS X Technologies :: Create An Apple-script To Install Printers - Can't Seem To Get It To Work

Mar 21, 2012

I'm running 10.7and I'm trying to create an applescript to install printers.  I'm able to run the first command without issues but the other two keeps giving me error messages in applescript. I assume its because the other two commands have spaces? These are the commands I run when in Terminal: 

/usr/sbin/lpadmin -p CX560 -E -v lpd://CX560/print -P /Library/Printers/PPDs/Contents/Resources/en.lproj/US-Letter/CX560_V1.PPD -D FireStationCX560 

[code]....

This is the only command I can successfully run in AppleScipt: 

do shell script "/usr/sbin/lpadmin -p CX560 -E -v lpd://CX560/print -P /Library/Printers/PPDs/Contents/Resources/en.lproj/US-Letter/CX560_V1.PPD -D FireStationCX560"  

View 2 Replies


ADVERTISEMENT

OS X Technologies :: System Preferences Won't Work When Click On It (on The Apple Menu)

Feb 14, 2012

When i click System Preferences on the apple menu nothing will happen.

View 14 Replies View Related

OS X :: 10.5.8 Inability To Create Printers In Print/Fax?

Jul 15, 2010

I have lost my printers in the System Preferences, Print/Fax window. When I click on the + sign to create a new printer, the window shows my laser printer listing , but only for two seconds when the window automatically closes. I cannot click on More Printers or any of the top buttons - the window still closes. My laser printer is on an Ethernet network.

View 7 Replies View Related

Intel Mac :: Can't Install Any Printers

Jun 8, 2012

Two of my USB printers failed to show up on my printer list. After trying several times to get them working, I switched them out for two other printers. I used the install CD and all went well but the two newer printers still didn't show up on my printer list. I click on "add printers" and only my Dymo label maker shows up. I've unplugged power and the USB cable and still nothing.

Info:
iMac, Mac OS X (10.6.8), My wireless printer was installed

View 3 Replies View Related

Hardware :: Printers Won't Work On Intel Mac?

Mar 30, 2010

Epson C86 and Samsung ML2510 suddenly will not work on my intel Mac 10.4. Worked a couple of days ago and now won't work. What do I do? This is not an ink problem.

View 7 Replies View Related

OS X Technologies :: How To Create A Dialog Box

Feb 27, 2012

What i am trying to do is create a program that lets the user have a small conversation with the computer but i don't want to use "else" and list the possible inputs seperatley and have to write the same thing over and over again. does anyone know of a way i can list possible inputs together and have them lead to the same result?

View 6 Replies View Related

OS X Technologies :: Create A Log File?

Apr 24, 2012

Been up for a while trying to figure this out with no luck. I created an app that will uninstall a program and all of it's files. 

example try                    do shell script "rm -rf /Applications/TestFakeApp"           end try     try                    do shell script "rm -rf /Applications/TestFakeApp2"           end try     try                    do shell script "rm -rf ~/Library/Preferences/com.FakeTestApp.plist"           end try          try                    do shell script "rm -rf ~/Library/Preferences/com.FakeTestApp2.plist" end try          try                    do shell script "rm -rf ~/Library/Logs/FakeTestApp*"           end try          try                    do shell script "rm -rf ~/Library/Application\ Support/FakeTestApp" end try 

there are alot more paths to remove but this is just a few for example 

I want to be able to create a log.txt file on the desktop to show what has been removed and or what could not be removed. 

I then tried by creating a text document by using 

do shell script "touch ~/Desktop/test.txt" tell application "Finder" open file ((path to desktop folder as text) & "test.txt") using ((path to applications folder as text) & "TextEdit.app")end tell 

but I don't know what to do next. 

1. Have it check for each file to see if it was deleted or not

2. add it into the test.txt file

3. save the file once done 

Info:
MacBook
Pro, Mac OS X (10.7.3)

View 13 Replies View Related

OS X Technologies :: Create Folder With Name Client150412n?

Apr 14, 2012

I'm new to ApplesScripting. I've found this script that I'd like to change: --This script will make a new folder on the desktop with current date and dialog box--format the date to 2010-11-19tell (current date) to get day & (it's month as integer) & (it's year as integer)set TheDateFormat to the result as text -- asks for folder name with date as default answerset TheFolderName to text returned of (display dialog "Name the folder" default answer TheDateFormat) --make folder with date & user entered texttell application "Finder"  make new folder with properties {name:TheFolderName}end tell The desired changes:- Date format should be: 150412 + a letter (a, b, c) if the folder to be created already exists.- Place the cursor at the start of name dialog, no selection active.- The new folders should be created in /Users/Hans/Dropbox/Jobs/Another question is related to execution of the script:- How can I start the script easily with a shortcut key or a Dock icon?- Is it possible to select client name from a plain text file containing client names in separate lines?- Is it possible to have zip files automatically unzipped to subfolder names with the zip package name?- Regarding the Dock icon I could even imagine that I drag a zip or other file from an email or the Desktop to the icon and that I only have to type the clients name to have the file moved to a new folder. user entered texttell application

View 1 Replies View Related

OS X Technologies :: Create Folders And Sort Applescript?

Mar 15, 2012

I am using a script that Jacques Rioux kindly helped me out with a couple days ago. I altered his script a little to complete a different task I needed to create a shortcut for. The script below first creates two folders (TIFF & JPEG) and then it sorts files with an extension .tif into the 'TIFF' folder and files with the extension .jpg into the folder named 'JPEG'. This works great but I would like the script to effect multiple folders. Can anyone help me add to the script so when you click it, a prompt will pop up allowing you to choose multiple folders to apply the script too? As of now it will only work on one folder at a time.

Info:
MacBook
Pro, Mac OS X (10.6.8)

View 2 Replies View Related

OS X Technologies :: Create ICloud Calendar With Applescript

May 5, 2012

I use the create calendar with name "" and it makes it "On My Mac". Is there any way to make it in iCloud instead? 

Info:
Mac Pro, Mac OS X (10.7.3)

View 2 Replies View Related

OS X Technologies :: Run The Create Booklet Workflow As A Folder Action?

Jul 2, 2012

Please accept my apologies if I'm posting in the wrong section .  I've been using the fantastic Create Booklet PDF Service (workflow) by Christoph Vogelbusch (his page is on .mac, so it just went bye-bye).  I'd like to turn this worklfow into a folder action so that when a file is added to the folder, a pdf booklet is created automatically.  In particular, I'm interested in doing this in Microsoft Word.  Can anyone tell me if this is even possible, and if so, either point me in the right direction (or, at least, to the best Automator community where I might repost this request)?

Info:
2.2 GHz Intel Core 2 Duo MacBook Pro, Mac OS X (10.6.3)

View 1 Replies View Related

OS X Technologies :: Will Iwork 8 Work On 10.7.3

Feb 28, 2012

I'm told that to keep my mobile.me I must upgrade from 10.6.8 to 10.7.3  If I do that will I lose my iwork 8?

View 1 Replies View Related

OS X Technologies :: Install The New System?

Apr 9, 2012

how do I install the new system? how do I protect myself from the viruses!

Info:
MacBook Pro, Mac OS X (10.7.2)

View 1 Replies View Related

OS X Technologies :: Install Linux Only Without It?

Apr 12, 2012

the hard drive on my macbook pro has died and i am in a foreign country with my install discs for os x in the attic of my house which is rented out! ive borrowed a friends install discs for his macbook pro just to see if i can repair the disk but its either not working because of the incompatibility or the hdd is just broken. i'm not dead set on using os x so i wondered if i can get a new hard drive and just boot with a linux install. i would like to continue using the firewire port for an external soundcard but apart from that i only want it for surfing and doing some php/apache web development.

Info:MacBookPro, Mac OS X (10.7)

View 2 Replies View Related

OS X Technologies :: Script Work With One Application And Not The Next?

Jun 28, 2012

This works: tell application "System Events" to try if exists process "Safari" then tell application "Safari" to quit saving noon error do shell script "killall Safari"end try And this does not work  tell application "System Events" to try if exists process "Ovolab Phlink" then tell application "Ovolab Phlink" to quit saving noon error do shell script "killall Ovolab Phlink"end try  

it hangs on the word 'no' and gives message: Syntax error Expected end of line but found application constant or consideration. Ovolab Phlink excists of course on my HD.   

If I take out the second 'Ovolab Phlink' and replace it with 'Safari', it does not hang (and does not work). 

Info:
MBP, MM, MBP - 10.6 + Windooz XP on a hard partition

View 12 Replies View Related

OS X Technologies :: Update Re-install An Automator?

Apr 11, 2012

in the past I deleted Automator, can an update re-install an Automator?

View 1 Replies View Related

OS X Technologies :: Install 3 Times And Have Had 3 Failures?

Apr 13, 2012

I have tried to install 3 times and have had 3 failures. Any solutions??? And yes, I repaired permissions.

Info:
iMac (27-inch Mid 2011), Mac OS X (10.7.2)

View 6 Replies View Related

OS X Technologies :: Parental Controls Don't Seem To Work Correctly

Mar 20, 2012

Our son can log off and log back on in the same 24 hour period of time, thus by-passing his daily limit we have set-up.

View 3 Replies View Related

OS X Technologies :: IPv6 Autoconfig Doesn't Work

Jun 29, 2012

found today that 10.7.4-OS X doesn't handle IPv6-autoconfiguration. 

At tcpdump I see the "Router Advertisments" but the configd can't answer with "Router Solicitation":

Jun 29 16:37:51 tksmac configd[16]: RTADV en1: send Router Solicitation: failed, Operation not permitted  All other devices in the same network works fine with IPv6 (autoconfig).  

Info:
MacBook Pro (15-inch Mid 2010), Mac OS X (10.7.4)

View 6 Replies View Related

OS X Technologies :: Apple Script For Mail Headers?

Mar 19, 2012

I am currently trying to generate a report using the headers from Apple Mail. The script I have works, but I would like to be able to pull out messages that are sent to a specific recipient ( a certain distribution group in this case...). 

[Code]...

View 1 Replies View Related

OS X Technologies :: Pinging IP Address Via Apple Script

Mar 27, 2012

this is my second script im trying to create. What i would like this script to do is have the user input and ip and ping that address my problem lies in getting ip address from the dialouge box into the "do shell script", this is my script so far  set Ip_address to ""set Dialog_1 to display dialog "Enter Ip Address" default answer "" with title "Ping"set the Ip_adress to the text returned of Dialog_1set ping to (do shell script "ping -c 2 & Ip_address & ")if ping contains "64 bytes" then display dialog "Connection Secessful"   

And also how do i make a variable so if it comes back i unresponsive  i can have a dialog box say "Connection Unsecessful" (I know i can do this maunally but i would like to create a script so its easier for the end user)

Info:
MacBook, Mac OS X (10.6.8)

View 10 Replies View Related

OS X Technologies :: Changing Background Via Apple Script

May 14, 2012

I manage a small deployment of different macintosh products and I currently have to run 5 different images so that the background images look right on all the various resolutions. I have been working on a piece of applescript to prompt the user on first startup to select their hardware type to apply the proper background image but I am running into a few issues. Firstly the method I am using limits me to three options and I cant seem to find any documentation on how the list function works..Second, I keep getting errors saying the files can't be found. [code]

View 2 Replies View Related

OS X Technologies :: Combine 2 PDF Files Into 1 Using Apple-script?

Jun 22, 2012

I am just starting out with applescript and could do with a pointer please. I have written a script which saves two pdf files from an active Illustrator document in the source folder of that document. The issue I am have now is that I cannot get the two files to combine into a single PDF file. The whole script is quite long and is works apart from the combine PDF part?

tell application "Finder" try open (every document file of container of file_path whose name contains ".pdf")  on error display dialog "no PDF file located"

[code]....

Both PDF documents open and are set as the variables docRefA and docRefb, but the acrobat command 'bring to front' and 'insert page' do not seem to be working. I get an error come up in an illustrator dialog box saying "Adobe Acrobat Pro got an error: document "84056_R1.pdf" doesn't understand the bring to front message".

Info:
Mac OS X (10.6.8)

View 14 Replies View Related

OS X Technologies :: How To Install Downloaded MS Office On IMac

Apr 11, 2012

I am new to mac. I download microsoft office and I would like to install it. I do not know how to do this. Do need the bootcamp thing?

Info:
iMac, Mac OS X (10.7.3)

View 2 Replies View Related

OS X Technologies :: Keep Getting An Error, And The Java Update Will Not Install

Apr 13, 2012

I keep getting an error, and the Java Update will not install. What can I do?

Info:
Mac Pro, Mac OS X (10.7.3)

View 1 Replies View Related

OS X Technologies :: Older Automator Script Won't Work In Lion

Jun 20, 2012

i have an Automator "application" that i made with the help of people on this very board that worked flawlessly on Snow Leopard and previous OSs but doesn't work in Lion anymore.i was hoping if someone could look at the file (link below) and either tell me what needs to be changed, or go right in and change it for me! (i don't really have much experience with scripting). i have a txt file with a list of filenames. the script references this list, goes to the folder that contains these files (but the folder also has other files in it too) and copies the referenced files into a new folder. url...

View 14 Replies View Related

OS X Technologies :: Apple Script Address Book Calling?

Feb 4, 2012

I am trying to make a script that allows me to call a number in Address Book in my Avaya Softphone app. Everything works great except that all numbers need to have "9-1" or "91" before the phone number. This is needed to access the outside line and all calling requires the country code. how to add the 91 to the script so that all phone numbers in the script have this added. 

[code]....

Info:
15" Macbook Pro 2.4 Ghz, Mac OS X (10.6.2)

View 3 Replies View Related

OS X Technologies :: Accessing Cells In Numbers With Apple-script?

Mar 1, 2012

HiThe usual tale of an Applescript beginner getting lost but, I want to be able to search for a selected membership number within a Numbers spreadsheet, extract that member’s email address and send a message. I have managed to create a script that creates and sends the email but after several attempts I cannot work out how to start searching cells for a particular value and how to extract data from cells in the selected row.

Info:
iMac, Mac OS X (10.7.1)

View 3 Replies View Related

OS X Technologies :: Follow My Link Or Whcih Is To Varify My Apple Id?

Mar 21, 2012

How can I follow my link or whcih link to varify my apple id?

Info:iPhone 3GS, iOS 5.0.1

View 1 Replies View Related

OS X Technologies :: Change Desktop Background In Apple-script In 10.7?

Mar 23, 2012

I'm just now upgrading from 10.6 to 10.7, and I'm having trouble with a script that I wrote that worked fine under 10.6.  In part, it executes the following command: osascript -e "tell application "Finder" to set destop picture to POSIX file "<path>"" to change the desktop background image to one of two different files based on other conditions. In 10.7, this command completes with no error code, but it only changes the background of one of my four desktops.  Is there a way to programmatically change the background image of all of my desktops simultaneously?  Failing that, is there a way to a) find out how many desktops I have and b) loop through them, setting each of their backgrounds in turn? osascript -e "tell application "System Events" to set picture of every desktop to "<path>"" Unfortunately, that also changes only the current desktop's picture. The larger script is in Perl, so I'd prefer a technology that works well with that language, but if I have to change to a different scripting language, that's not the end of the world. 

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved