Script to see if printer is idle...

I'm trying to write a script to see if my default printer is idle...
How do I check to see if a printer is currently busy?
Thanks in advance!

tell application "Printer Setup Utility"
set Busy to status of current printer is printing
end tell

Similar Messages

  • Urgent:How to modify a script without changing the print programme

    Hi all,
    Can any body pls tell me <b>How to modify a script without changing the print programme</b>
    Give m esome real time examples.
    Good points willbe rewarded
    Thanks

    Hi
    You can write a external Subroutine to fetch the extra data into the script program
    see the following sample code
    How to call a subroutine form SAPscripts
    The Form :
    /:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
    w_vbeln LIKE vbak-vbeln,
    w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = w_ebeln
    IMPORTING
    output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.
    COPING SCRIPT
    There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.
    I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...
    To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.
    You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.
    Ex: Go to SE71,
    on menu bar u find Utilities->copy from Client. click on it u ll find new screen showing
    Form name:
    Source Clinet:
    Target Form:
    give Form name as usedefined form name EX: ZFORM1
    Source client as 000 and
    Target form as MEDRUCK.
    execute.
    Now, the standard from MEDRUCK is copyied to your form ZFORM1.
    NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.
    Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.
    Go to NACE Transaction.
    on Applications select EF for purchase order and click Output types button on application tool bar.
    now select NEU as output types dobule click on Processing Routines.
    now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.
    go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .
    you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4089895&messageID=3239299
    Regards
    Message was edited by:
            Kiran Sure(skk)

  • Script to see if portal is really running

    I'm looking for a (unix) script to see if the portal is really
    running.. I can't use processes/etc.. because they can hang and still
    show up in the process table..
    I've tried to telnet to port 8080 and issue the GET command .. which
    works 'manually' but I can't get it to work
    in sh....... any ideas??

    tell application "Printer Setup Utility"
    set Busy to status of current printer is printing
    end tell

  • Printer is idle - what should I do

    My priner is "Idle".  What should I do so I can use it again

    Hello @w0j8c301,
    Welcome to the HP Support Forums!
    I understand that you're getting the printer status 'idle' when trying to print from your Mac OS X 10.10 computer to your HP Deskjet D2660 Printer. I would like to assist you today with resolving this issue. 'Idle' is perfectly normal to see under the Print & Scan window. It just means your printer is in a 'ready' status and should be able to print for you. Now, issues arise when your printer is showing as 'ready' or 'idle' but failing to print for you. If your machine is not printing from your Mac OS X 10.10 computer can I please have you follow the steps below.
    Step 1: Reset the Print System:
    To start, I am going to have you Reset the Print System on your Mac. Please click here for instructions on how to perform the Reset. When the website opens follow the steps under 'Resetting the printing system in OS X Lion' as the steps are the same for Mac OS X 10.10. This Reset will remove every printer from your Mac. However, it does not uninstall the printers. Therefore, should you use other printers on this Mac, once the Reset is complete simply ensure that the printers are connected via a USB Cable or Network connected and (+) Add them back in. Do not add your HP Deskjet back in at this time.
    Once the reset is complete, please proceed to the next step.
    Step 2: Uninstall Drivers and Software:
    Next, please click here for steps on how to properly uninstall your printer. Once the site opens select the dropdown for 'Mac OS X v10.6, OS X v10.7, OS X v10.8, and OS X v10.9' and follow the steps under Method Two to complete the uninstall process.
    Once the uninstall is complete, please continue on. 
    Step 3: Verify and Repair your Disk Permissions on the Mac:
    Open Macintosh HD and go to Applications
    Go to the Utilities Folder
    Open the Disk Utility
    Select the Hard Drive volume you are using (usually on the left)
    Select Verify Disk Permissions
    Once that process is done, select Repair Disk Permissions
    Step 4: Manually install Driver Package:
    Please click here to manually download the Apple Update package for HP Printer Drivers v3.0. Once the website opens select the Download button at the top. Follow the onscreen instructions to install the driver package.
    Step 5: Check for Apple Updates:
    Go to Apple
    Select System Preferences
    Select Software Update
    Click Update Now
    Install your available updates
    Restart your computer
    Step 6: Add the Device:
    1. Click the Apple menu, and then click System Preferences.
    2. Click Print & Scan, and then check if the name of your printer displays in the Printers list.
    3. Click the name of your printer, click the minus sign (), and then delete the printer. 
    4. Click the plus sign (), click Add Printer or Scanner, click the name of your printer,
    5. Click the Use or Print Using box, and then select the name of your printer in the pop-up menu. Ensure that the Deskjet driver is selected.
    6. Click Add to add the printer to the list.
    - Source
    Once your printer is successfully added in, please try printing again to verify that the issue is now resolved.
    Please respond to this post with the result of your troubleshooting. Good luck!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • How to see the print preview of a Purchase Order

    Hi,
    Can we see the print preview of the PO.
    I made changes to the sapscript associated with it.But I don't know how to test it.
    Thanks in advance.
    Venkat

    Hi Venkat
    In the tcode ME22N, give the PO no.
    In the menu ... Go To -
    > Messages
    Define a entry for print o/p:
    Enter the o/p type
    Medium should be "1 Print Output"
    Hit enter.
    Click on Communication Method:
    in Format Enter the Test Sap Script name that you have changed.
    Save & come back..
    Then go to the initial screen & click on print preview, you should see the display.
    Thanks
    Geetha

  • HP Officejet 6500A printer is idle and won't print

    I have an HP Officejet 6500A all in one printer.  I recently moved to a new home, hence new wireless IP address, which I think I have setup correctly as per the print Test page.  I also have a USB  connected to print, as I hardline as well when at my office desk for heavy workload. The printer says idle, and I cannot get it to print. 

     Welcome to the HP Community Forum. The easier thing might be to remove the printer software from the computer and then install a fresh copy from the printer's support site. Check and make sure you can download a new copy of the Full Feature Software before you remove the printer program from your computer. You might install the printer to print wirelessly so you know it will set up the new wireless information. Help, Instructions, and examples:Install Full Feature Software – Printer   When you connect to the printer's support pages, be sure you grab a copy of the printer's User Guide.  You might also take a look at the extensive number of how-to documents and helpful videos. When you see a Post that helps you,Inspires you, provides fresh insight,Or teaches you something new,Click the "Thumbs Up" on that Post. Click my Answer Accept as Solution to help others find Answers.
      

  • Printer says idle try again in 30 seconds

    My wifi hp printer says idle, try again in 30 seconds! Any ideas on how to fix this problem?

    Hi, not really, but...
    Mac OS X: About the Reset Printing System feature ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    10.5/10.6/10.7/10.8 instructions...
    In System Preferences>Fax & Print, Right click or Control+click on the Printers list Sidebar, choose Reset Printing System.
    if you hold option and click the "-" tab it resets the printing system.
    http://www.macosxhints.com/article.php?story=20031215144430486
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions.
    Any devices that previously appeared in your Printer List and Fax List will need to be added again after resetting the printing system.
    Resetting the printing system in Mac OS X 10.5.x+++
        1.    To use the Reset Printing System feature in Mac OS X 10.5.x, follow these steps:
        2.    Choose System Preferences from the Apple menu.
        3.    Choose Print & Fax from the View menu.
        4.    Control-click on list of printers on the left side of the window, then choose "Reset printing system" from the contextual menu. If you don't see a list of printers, Control-click on the text "Click + to add a printer or fax" and select "Reset printing system..." 
   
  As an alternative, if you currently have one or more printers listed, you can Option-click the "-" (Remove printer) button.
    http://support.apple.com/kb/ht1341
    Reboot.

  • How do I configure my Airport Extreme to see the printer I have plugged into the USB port?

    How do I configure my Airport Extreme to see the printer I have plugged into the USB port?

    OK. The 6.0 version no longer has a printer configuration that I could find. You might try Printer Sharing in the Sharing preferences.
    I would also check the printer's user manual for help with the setup, and that failing check the manufacturer's website and/or tech support.

  • TS1702 My ipad doesnt see my printer on my network?

    I have installed hp eprint home & biz app to print on hp 6500 wireless printer but My ipad cant see my printer on my network. The printer is connected through the router. any help would be much appreciated.

    Hey bud,
    Ensure that the printer has the latest firmware update installed.
    Also, make sure that the printer is shared over the wireless network.
    I work with HP.

  • My computer does not see my printer

    Hi: I am having a problem with my HP Photosmart 4500 printer. My computer does not see it. I have a USB connected to it, have uninstalled and installed the software two time, dowloaded the latest update and nothing. Add to that, I can not connect it by WIFI. WIFI on the printer is on but again, it's no where on any of the screens. The only variable I can think of that has changed has been the router I got recently from AT&T. Everything else works with the WIFI but no computer. I'm running 10.7.5. I have read the install instructions and nothing seems to be working. The one thing I do get from the HP install disc is a message reading the printer isn't recognized but there are no updates in support. OK, what am I missing here?

    Try these steps to uninstall the current software using the HP scrubber and then reinstall using the current HP driver available through Apple.
    To do so, perform the following steps:
    1. Go to Applications/Hewlett Packard/ and then click on “HP Uninstaller”
    2. Next click “Continue”
    3. Highlight the device on the left pane.
    4. Press and hold control+alt+command on the keyboard simultaneously while you click on “Uninstall”.
    5. After you do this, you will see a pop up that asks you if you want to uninstall all HP software. Please note, that in doing this, it will remove any other HP printers that you also have installed.
    6. Click “continue” and wait for the program to finish.
    7. After it completes, reboot your computer.
    Once the computer is back on, do the following steps:
    WARNING: This is will delete all of your printers.
    1. Go into “System Preferences” and then select either  “Print & Scan” or "Print & Fax".
    2. Right click (or control + click) on the rectangle listing your printers and then select “Reset Printing System”. 
    After you have reset the printing system, let's make sure you have the most recent HP driver package installed.
    You can do this two ways. First,  check for any available HP Update's by clicking the Apple icon and then Software Update. If there are any updates available, they should show up here. However, if the printer is connected by USB, it will not show any available updates. The other option is downloading the drivers from Apple's website.
    You can download it here: http://support.apple.com/downloads/DL907/en_US/HPPrinterDrivers2.14.dmg
    Once you have downloaded the driver package and completed the installation, you will want to plug your printer back in (if you were using a USB connection).  After the printer is plugged back in, go into your print settings under System Preferences > Print & Scan. To add the printer, click the plus sign. You should see your printer listed here. If not, click "Add Printer or Scanner." Click the name of your printer and then click "Use:” box.  Make sure that says the name of your printer and not AirPrint. If you are using the printer wirelessly, make sure that the printer "Kind:" is set to Bonjour or Bonjour Multifunction. Click "Add" down in the bottom right hand corner.
    This will add your printer back using the most recent HP print driver available through Apple. Let me know if this helps resolve your issue or not. If it doesn't, let me know I will see what else I can do.
    Best of luck,
    Kyle

  • My Ipad mini does not see my printer. my wife's ipad2 does. We both use IOS8 and upgraded at the same time. How can I remedy this?

    My Ipad mini does not see my printer. my wife's ipad2 does. We both use IOS8 and upgraded at the same time. How can I remedy this?

    OK great info!
    I found 2 possible ethernet to USB adapters:
    By "Plugable":  USB 2.0 to ethernet LAN wired network adapter - seems this will work, but I'll contact Plugable.
    2. Apple USB Ethernet Adapter
    Easily connect your MacBook Air computer to an Ethernet network with the Apple USB Ethernet Adapter. Small and light, it connects to the USB 2.0 port of your MacBook Air and provides an RJ-45 connector that supports 10/100BASE-T performance.  BUT NOT SURE IF THIS WILL WORK ON ANYTHING BUT a MacBook Air…
    One person commented: 
    This little gem used to be the device of choice for adding a second Ethernet interface to a Mac Mini Server and I'd been using one that way for about a year. After doing a software update to 10.6.6 it stopped working. Forewarned is forearmed – it appears that Apple is finally enforcing the MacBook Air system requirement.
    Thanks for any additional comments.
    Best regards,
    Steve Schulte
    Sunday 6 January 2013

  • How to see the print preview of outgoing excise invoice.

    Hi Experts,
    How to see the print preview of outgoing excise invoice.
    Thanks,
    srinivas.

    Dear Sreeni,
    Just go to J1IIN, click on "Exc.inv for delivery -- Display" where you input delivery reference and execute. If you have generated excise invoice, you can see the corresponding excise invoice for that delivery / billing document.
    Preethi.

  • I cannot see the print button on the bottom tab in order to print a document even when I hide to tool bar.

    I recently changed my computer software from Vista to Window & Ultimate. Since changing, I cannot see the print button which should be at the bottom. I have tried to hide the bottom toolbar but it still does not allow me to see the print button. Please give me directions in easy to read English.

    If the menu bar is hidden then press the F10 key or hold down the Alt key to make the menu bar appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible:
    *"View > Toolbars"
    Open the Customize window to set which toolbar items to display:
    *View > Toolbars > Customize
    *Firefox > Options > Toolbar Layout
    *Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    *If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • There are hidden pages in the PDF form I have.  How can I see and print all without clicking on the

    I have hidden pages in the PDF form I'm using (but didn't create).  How can I see and print all the pages at once without clicking on the "next page" button.  In the initial view, there are four pages, but if I click the "next page" button, there are a total of 12 pages in this document.  This is three budget years, each year being 4 pages long.

    You're most likely dealing with a dynamic XFA form created in LiveCycle Designer. You can open it, click the button, and save it, and it will most likely be 12 pages when next opened, but it depends on how the form is set up. The ability to make edits to an XFA form in Acrobat is very limited, especially for dynamic forms, so things like flattening aren't possible.
    If it's not an XFA form, you'd still need to click the button at least once and save. To say for sure what's possible, I'd need to see the document. Can you post it somewhere?

  • Hp printer control app for ipad cannot see my printer

    Hello Everyone,
    I downloaded hp printer control app for ipad & hp eprint app. the eprint could see my printer (hp 6450 all in one printer) but I cannot print documents. The hp printer control app cannot see my printer, what can i do to print my documents.
    Peter

    Hi grandslam36,
    I see that you're trying to print using your iPad.  I would take a look at the document below.
    Hp Photosmart 5520
    Let me know how it goes. 

Maybe you are looking for

  • Issue with Exceptions in Reporting

    Hi BW Gurus,             I am still new to BW, Like I have a issue with exceptions in reporting.             Let me explain clearly, I created a report which gives me two MRP values they are for example V1 and PD(there other MRP types but I am focusi

  • Contract phones

    AWARE anyone with a Verizon "no contract" phone.  I had auto pay set up for my 45 dollar amount plan and a voice auto message from Verizon came on my phone to make a payment now to NOT disrupted services,  I did using the automatic service with my cr

  • How do I load a website folder onto the ipad of offline use?

    I have a website that I want to load onto the ipad for viewing without interntet.  I have the entire 1000+ page site and images on my laptop's desktop and I can view it there. How do I put it on the iPad and use it there? Thnaks for the help.

  • Why can't I import songs from my laptop to my phone

    I am unable to import music from my laptop to my phone. Help! :(

  • Confused with multiple Library's.

    I Have two Ipods, the older on is a 30GB classic and the new one is the 32GB iPod touch...I'm giving my wife the classic, tonight I have being reading here about how to create a new library for her without creating a new account. Things were going fi