Help Needed Creating AppleScript for Dial Up Access and Updates

Hello,
Due to my location I can only access the internet via Dial Up. I would like to create a script that wakes up my Mini early in the AM, dials my ISP and checks to see if there are any Apple Updates. I'd like to do this at night so my family doesn't have to compete with updates when they are using the computer.
I've done the Apple Scripting tutorials and have a feel how to do the basics. But I cannot find any information on how to access the USB Modem (US Robotics), get it to dial, access the "Check for Updates" page, download, install and then disconnect.
Can anyone point me to a functional script that will do this or tell me where I can find the modem related scripting commands?
Thanks

1). Does your script both get and install updates if they exist ? If not what should be added to accomplish that?
If you use man softwareupdate to look at the command line options for softwareupdate you'll find:
-i | --install
Each update specified by args is downloaded and unarchived,
and also installed. The install flag requires root. args
can be one of the following:
item ... One or more update names.
-a | --all All appropriate updates.
-r | --req All required updates.
So '-i' tells softwareupdate to install the updates, and '-a' tells it to install all available updates, as opposed to a specific update, or 'required' ones.
2). Can you suggest an addition to the script that will disconnect the dial up modem and then shut down our Mac Mini?
That's going to be harder because, as written, the script performs the softwareupdate in the background. It does that so that you don't run into timeout issues (by default AppleScript will timeout after a certain period, canceling the script in progress). Since it's not clear how long the updates will take to download and install it isn't possible to predict what the appropriate timeout should be.
The easiest way to disconnect would be to just configure the dialup connection to disconnect after a certain period of idleness (System Preferences -> Network -> Modem -> Advanced -> PPP -> Options or some such). If that doesn't suffice let me know and I'll craft up a revised script.

Similar Messages

  • Help Needed: Automator Applescript for Folder Action - Encode Video

    Hi !
    I have created an Automator Applescript for a Folder Action to do the following:
    When a new video file is moved to the target folder (i.e. Download of Vuze is done), automatically launch the Applescript Action that does the followin g(Applescripted):
    1) Using "run shell script" and FFMPEG on a UNIX command line, determine Width/Height, Framerate, Bitrate
    2) Calculate encoding parameters (slightly reduced bitrate, reduced Aspect etc.)
    3) Using "run shell script" with ffmpeg on the command line and the calculated parameters to encode the video file
    At the same time, the action is written to a log file so I know if a file is recognized, when encoding started etc.
    It works fine if I save this Action as an .app, make an alias on the Desktop and drop video files on it.
    It also works fine if I attach the script to a folder as a folder action and drag a video file in there.
    However, when I attach the script as a folder action to the Vuze download folder, it encodes only some video files, i.e. if there was a download of 5 files, chances are good that it will not encode 1 or 2 files out of those 5.
    If for example a second download finishes while the encoding for the first download is still going on, sometimes the second file starts encoding after the first encode finishes, sometimes it does not, the file does not make the log file at all, i.e. the folder action missed it or the automator action dropped it because it was still encoding. Still, sometimes it happens, sometimes not.
    As I need a solution that is 100% accurate, I would like to ask if there are any ideas on how to do this better maybe? As I am not an Applescript Guru, I would need some help to know what works and what doesn't and what the syntax is.
    My main idea right now:
    Similar to how ffmpegX works with its "process" application, have a second script (as .app) that receives the files to be encoded from the automator action and puts them in a queue, then proceeds to encode this queue while the main automator action is free to receive the next file.
    Writing this second app is quite straightforward (a modified version of my current script) but I have some questions I need help with:
    1) How do I call another applescript from within an existing applescript that launches the new applescript in a new process?
    2) How do I pass parameters to this new applescript?
    3) In case of this "Queueing" Idea, once I called the external applescript the first time, how do I make sure when I call next time, that I don't open a second instance of this script but rather pass another queue item to the original instance to be processed?
    Or in general: Is there a better way to achieve this automatic encoding solution that I have not thought about?
    Alternatively:
    Does anyone know how to call the "process" application that comes with the ffmpegX package with the correct parameters to use as a queueing / processing tool?
    Thanks!
    Joe
    Message was edited by: Joe15000
    Message was edited by: Joe15000

    To do this, I created an Automator workflow with an Applescript snippet to change the 'media kind'.
    Here is the 'Run Applescript' workflow step code:
    on run {input, parameters}
              tell application "iTunes"
                        set video kind of (item 1 of input) to movie
              end tell
              return input
    end run
    Prior to this running, I have an 'Import Files into iTunes' workflow step.
    You can switch out 'movie' with: 'TV show', 'music video', or anything in ITLibMediaItemMediaKind.
    Good luck,
    Glenn

  • Help with Simple Applescript for Midipipe

    Hey all, I'm in desperate need of help with some Applescript for use in a program called Midipipe:
    http://web.mac.com/nicowald/SubtleSoft/MidiPipe.html
    I simply require an Applescript for Midipipe that filters out all OFF notes except for the most recently pressed key, or most recently pressed ON note. So for example, when multiple keys have been pressed, only the most recently pressed key will send an OFF note. I hope that is clear enough, i've had some major issues trying to get this work and my last hope is to hit the forums and find some help .. I've posted on some of the audio forums and i'm hoping someone here knows how to code this.
    Thanks so much!! .. Its for an upcomming show next week so i'm hoping someone can get me in the right direction to solving this.
    -Jes

    I try to help, but you'll need to apply your brain cells to get it working with what I've already explained (three times with what I offer below).  Try something like the following (I am renaming your buttons to ch1,ch2,ch3,ch4,ch5,ch6 so that the same functions can be shared by all buttons...
    // this assigns listeners to all 6 buttons
    for(var i:uint=1; i<7; i++){
              this["ch"+String(i)].addEventListener(MouseEvent.CLICK, fl_ClickToSeekToCuePoint);
    // this processes any one of the 6 btns when they are clicked
    function fl_ClickToSeekToCuePoint_1(event:MouseEvent):void
        var btn = event.currentTarget;
        var cuePointInstance:Object = vid.findCuePoint(btn.name);
        vid.seek(cuePointInstance.time);
       resetButtons();    // this makes all buttons go back to normal
        btn.upState = btn.overState; // this makes the clicked button change states
    function resetButtons():void {
         for(var i:uint=1; i<7; i++){
              this["ch"+String(i)].upState =  this["ch"+String(i)].hitTestState;
    For this to work, your buttons need to have the same artwork in the hit frame as they do in the up frame.

  • Need an Applescript for...

    I need an Applescript for turning off my computer after it has been idle for 2hrs. Please and Thank you

    See this post. http://macscripter.net/viewtopic.php?pid=68885

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • What is the best External Hard Drive for a Macbook Leopard 10.5.8?  I need more memory for documents, pictures, videos, and music.  Thanks!

    What is the best External Hard Drive for a Macbook Leopard 10.5.8?  I need more memory for documents, pictures, videos, and music.  Thanks!

    Hi, does your MacBook have Firewire, or just USB?
    FW is far faster if you have that.
    Avoid Bus powered ones.
    http://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATA_FW800_FW400_USB
    USB only...
    http://eshop.macsales.com/shop/firewire/usb/eliteclassic

  • Why I need a code for rent a film and where ist the code? (I dont have a card)

    Why I need a code for rent a film and where ist the code? (I dont have a card)

    it's unclear what you mean
    you say you dont have a card which I guess is you don't have a creditcard
    in which case the other option is to pay by a giftcard which include a code which you put in
    because to rent you have to pay otherwise it's not really renting

  • I have an ipad 4 running ios 7 but i noticed ios 7 on my ipad seems laggy. I already did a factory reset but it seems doesn't change a bit. Are there any solution for this or I need to wait for the next ios 7 update?

    Am I the only one who facing this problem or there someone else. I did a factory reset yesterday but it still laggy. Do I need to wait for the next ios 7 update or what?

    Hi Amish,
    I should have mentioned that I have signed out of the iCloud Control Panel several times and no syncing occurs.
    Thanks for your response anyway. I appreciate your feedback.

  • I have tryed to connect an AirPort Express to my wireless network. But I alwais get the errocode -4. Can anybody help. I have reset the AirPort Express and updated the software.

    I have tryed to connect an AirPort Express to my wireless network. But I alwais get the errocode -4. Can anybody help. I have reset the AirPort Express and updated the software.

    The ZyXEL P-2601HN-F1, as you know, is a combination DSL modem & 802.11n wireless router (or gateway device).
    For your goal you will want to take a look at this Apple Support article for details on how to configure an AX for iTunes.
    If you are still having difficulties with the AX joining the ZyXEL's wireless network, you can try the following:
    Temporarily disable wireless encryption.
    If you are hidding the SSID, disable that feature.
    Change the Mode Select setting to: 802.11g Only
    Change the Channel Selection from "Auto" to a set channel, like 1, 6, or 11

  • Multiple iphones each with an apple id - can i use the same laptop and itunes for back up, restore and updates?

    We have two iphones each with a different apple id - can i use the same laptop and itunes for back up, restore and updates without risking having my apps overwritten.  Basically does itunes keep the two iphones as two separate entities ?  Does iTunes differentiate between the two devices and keep two different SYNCs ?

    Yes, you can use the same computer for BACK UPS, RESTORING AND UPDATING. But that is it.
    You cannot, however, use it to sync the different devices. iTunes will only recognize one device to sync with and if you sync any other devices with that iTunes library, it will replace what is on the phone with whatever is in the library. It cannot differentiate between devices. At most, it will jsut recognize that the phone has been synced with a different iTunes library.
    So if you would like to use the same computer for backing up, restoring and updating, just make sure to turn of Automatic Syncing in your iTunes Preferences.

  • Need help in creating prompt for Month To Date Report.

    <span class="postbody"><font size="2">Hi All <br />I need to create a Month To Date Report using month(Start date & End date) as prompts, By default it has to run on the previous month data or if user selects his own range of dates then it has to bring the data for that range of dates ,one more thing is i am not showing the month and date columns on the report.Can any one help me how to create prompt for this in DeskI XIR2</font></span>

    Could you clarify some things? You are saying you are trying to transform the xml output of a webservice with an xsd, but an xsd is a schema that describes the allowed format of a xml file. If you want to transform xml from one format to an other (from one xsd to an other) you have to use a xsl file. You can make and test this with JDeveloper. Are you calling the webservice from esb or bpel?
    Kind Regards,
    Andre

  • Need help in creating documents for Contacts in Oracle HRMS

    We are trying to add documents to Contacts in Oracle HRMS. (11.5.10.2)
    Navigation: Oracle HR Super User -> Fastpath -> Documents of Record
    Search for a Contact -> Manage Documents of Record -> Create Document of Record.
    In Document Information -> Type is mandatory field but the LOV is not returning any values.
    The LOV works fine for both system defined and custom document types when trying to create documents for Employees or External Contractors.
    But we would need to be able to add documents for Contacts also.
    Please let us know if this expected functionality or if there is any setup that is needed.
    Any help in this regard is highly appreciated.
    Thanks,
    Kiranmayi.

    We are trying to add documents to Contacts in Oracle HRMS. (11.5.10.2)
    Navigation: Oracle HR Super User -> Fastpath -> Documents of Record
    Search for a Contact -> Manage Documents of Record -> Create Document of Record.
    In Document Information -> Type is mandatory field but the LOV is not returning any values.
    The LOV works fine for both system defined and custom document types when trying to create documents for Employees or External Contractors.
    But we would need to be able to add documents for Contacts also.
    Please let us know if this expected functionality or if there is any setup that is needed.
    Any help in this regard is highly appreciated.
    Thanks,
    Kiranmayi.

  • Need help on Creating YTD for a month variable in WEBi...

    Dear Experts,
    I am using BO4.1. I am creating a WEBi report where I have a month variable which shows months in the below format
                                                                                                                                             I need to create YTD for the year ...Please help me .. this has to be displayed in chart.. So using the sum(No.Of.Ans ) doesnt work in chart.
    Please suggest any other ideas...

    Hi Bala,
    Create a variable at universe level,and assigned table must be the table from which you are getting month.
    Now take the object "YTD" into second query
    Merge the Month object and YTD object
    Create a variable for balance,
    =If [month]="YTD" then sum([balance]) else [balance]
    Noe you will get the required output as your requirement,
    Regards,
    Samatha B

  • Hi I need help in creating role for DEVELOPERS and HCM GUYS in ERP DEV. sys

    Hi Experts
    I am working as a Support Security Consultant. Now I have assigned to another implemenation Project.
    My client asks to create 2 roles in DEV. system the requirement is:
    1) He asks to create a role for develpoers in dev system fro devepment activities ( report creation, screen creation..etc..) and these people don't modify the HR related tables
    2) He asks to create role for HCM guys in development system to work on HCM Configuration and to work on HCM areas but these people should not involve into develpometn activites
    My questions is what are the tcodes we have to maintain in the roles to reach his requirement.
    I asked the same thing to my Client he doesn' t provide any information
    Please anyone help me on this
    Thanks
    Naresh

    Hi,
    for the first query please check auth object -Authorization Object S_TABU_DIS (Table Maintenance)
    http://help.sap.com/saphelp_nw04s/helpdata/en/1e/e867408cd59b0ae10000000a155106/content.htm
    No Worries
    KG

  • Help needed with DisplayConfigX for Philips 32PW9551/12 CRT TV

    Hi everyone,
    I've been following this part of Apple Discussions closely for some time now, and I realise that I'm not the only one having trouble connecting my Mac Mini (Core Duo) to my TV. I'm hoping that BSteely or somebody else here could take a look at my specific problem. I'll try to provide as much relevant info as I can, if more input is needed, please specify.
    Here goes :
    TV model : Philips 32PW9551/12 That's a CRT, but with HDMI input. The manual says that it should accept 480p, 576p, 720p and 1080i.
    Cable : DVI-HDMI
    Using VNC over Airport when things go wrong, resetting back to the original resolutions.
    Problem : can't get 720p resolution to work, only 640x480 fills screen. 640x480 is too low, since Remote Buddy's menu does not even fit on it.
    When I select 1280x720 the image is on the left of the TV, leaving a wide black bar on the right and dropping a lot on the right. Other resolutions either don't work at all, are seriously overscanned (no dock, no menu) or are horrible to look at.
    I've been fiddling with DisplayConfigX and SwitchResX, but I feel it's out of my league, so I'm not getting anywhere. I did export settings via SwitchResX, I hope that provides some insights.
    Thank you very much in advance for helping me get my setup to work by creating a tailormade timing !
    Kind regards,
    Also Starring
    Belgium
    DDC block report generated by SwitchResX for display
    PhilipsTV
    0 1 2 3 4 5 6 7 8 9 A B C D E F
    0 | 00 FF FF FF FF FF FF 00 41 0C 51 95 01 01 01 01
    1 | 06 10 01 03 80 42 25 78 0A 0D C9 A0 57 47 98 27
    2 | 12 48 4C 20 00 00 01 01 01 01 01 01 01 01 01 01
    3 | 01 01 01 01 01 01 01 1D 80 D0 72 1C 16 20 10 2C
    4 | 25 80 94 72 21 00 00 9E 01 1D 00 72 51 D0 1E 20
    5 | 6E 28 55 00 94 72 21 00 00 1E 00 00 00 FD 00 31
    6 | 3D 1C 2E 08 00 0A 20 20 20 20 20 20 00 00 00 FC
    7 | 00 4C 30 36 48 44 20 76 31 20 31 36 3A 39 01 29
    Valid DDC block: checksum passed
    EDID Version........1.3
    Manufacturer........PHL
    Product Code........20885 (5195) (9551)
    Serial Number.......16843009
    Manufactured........Week 6 of year 2006
    Max H Size..........66 cm
    Max V Size..........37 cm
    Gamma...............2.20
    DPMS Supported Features:
    Display type:
    RGB color display
    Input signal & sync:
    Digital
    Color info:
    Red x = 0.625 Green x = 0.280 Blue x = 0.155 White x = 0.283
    Red y = 0.340 Green y = 0.595 Blue y = 0.070 White y = 0.298
    Established Timings:
    640 x 480 @ 60Hz
    Manufacturer Reserved Timings:
    Standard Timing Identification:
    Monitor Description blocks:
    Descriptor #0 is Timing definition:
    Mode = 1920 x 540 @ 50Hz
    H. Active...............1920 pixels
    H. Blanking.............720 pixels
    V. Active...............540 lines
    V. Blanking.............22 lines
    HSync Offset............528 pixels
    HSync Pulse Width.......44 pixels
    VSync Offset............2 lines
    VSync Pulse Width.......5 lines
    Pixel Clock.............74.25MHz
    Horizontal freq.........28.12kHz
    Vertical freq...........50.04Hz
    H Image Size............660mm
    V Image Size............370mm
    H Border................0 pixels
    V Border................0 lines
    Interlaced
    Sync: Digital separate with
    * Positive vertical polarity
    * Positive horizontal polarity
    Descriptor #1 is Timing definition:
    Mode = 1280 x 720 @ 60Hz
    H. Active...............1280 pixels
    H. Blanking.............370 pixels
    V. Active...............720 lines
    V. Blanking.............30 lines
    HSync Offset............110 pixels
    HSync Pulse Width.......40 pixels
    VSync Offset............5 lines
    VSync Pulse Width.......5 lines
    Pixel Clock.............74.25MHz
    Horizontal freq.........45.00kHz
    Vertical freq...........60.00Hz
    H Image Size............660mm
    V Image Size............370mm
    H Border................0 pixels
    V Border................0 lines
    Non-Interlaced
    Sync: Digital separate with
    * Positive vertical polarity
    * Positive horizontal polarity
    Descriptor #2 is Monitor limits:
    Horizontal frequency range.......28-46 kHz
    Vertical frequency range.........49-61 Hz
    Maximum bandwidth unspecified
    Descriptor #3 is Monitor name:
    L06HD v1 16:9
    Mini Intel Core Duo   Mac OS X (10.4.8)  

    (1280x594 60Hz NTSC) gives fairly stable
    image, big black border on
    top, fallen off image on the left but right and
    bottom seem ok.
    You might want to run with that and see if you can dial it in better. SwitchRes X has arrows you can use in the right-hand side of the custom pane where you can try and center and size the image better.
    Another thing. I don't seem to be able to enter the
    pixel clock number exactly as you specify. It keeps
    changing it slightly. Eg, after rebooting, it says
    68,4 in SRX, even though I entered 69,75 before...
    This is explained in the SRX documentation. When you make a request of the hardware that it somehow can't satisfy, it just tries to do the next closest thing. But you don't get and feedback of what the hardware can and cannot do. You only get unexpected results as you have mentioned.
    And also, should the vertical scan rate not be
    exactly 60 Hz ? Other numbers don't seem to be
    accepted by the TV, but when making custom timings,
    these scan rate numbers seem to be changing all the
    time.
    If you look at the EDID data you posted at the begining of this thread, towards the bottom it states that your TV will work from with any vertical frequency in the range of 49Hz to 61Hz. You don't need to use 60Hz but that is a standard. There is very little downside to deviating from that with and LCD display.

Maybe you are looking for

  • Can't download content in Elements 12.1

    Dear all I've just installed Premiere Elements 12.1 and am trying to play around with the features in the software. But I'm facing this issue whenever I attempting to download themes, graphics or text: If it matters, my PC specs: - Windowns 7 Pro - S

  • Westell 6100G Data light constant activity

    I recived a new modem to replace my old 6100,my old one had 5 lights This new one (6100g) has 3 lights a internet ,data, and dsl light.Now I'm aware that when a light is flashing it means data is flowing through and or it's connecting.So why is it th

  • Upload of video's to Ipod

    Hi there all, I'm using an Ipod Video 60Gb, and uploading video's. When I'm watching these videos I can see that my ipod have put them in foldes for exemple: podcast in the folder "podcast" and every other video in the folder "video". I also have a f

  • P1505N LANDSCAPE PRINTING

    I am using a P1505N with a UNIX software platform...Trying to set the config to landscape mode in the web based settings screen...When I change format to landscape & 60 lines per page, I then OK the configuration, restart the printer & try to print a

  • Export Aperture to Photoshop

    When I click open with externel editor, which is Photoshop CS3, on a raw file, the file will be opened in photoshop according to the title bar as filename.psd@50%(RGB/16*). This means, I guess, I have a 16Bit RGB file. However I can not apply most of