Applescript and Sprint Aircard automation

Hello everyone. Long time lurker, first time poster.
I've been searching for a solution to my question for a while. I've found hints and explanations, but I cannot find an example and I'm very new to applescript. So, here goes:
I have a Sierra 597U USB aircard that also contains an 8GB microSD card. I had an issue that whenever I wanted to remove the card, I had to unmount the volume for the MicroSD card also. I've managed to create a small script that I can run that will unmount the volume and quit Sprint's SmartView application. That was easy. Now for the stumper...I'd like to write a script and use folder actions that would run the SmartView application whenever the aircard is plugged into the USB port. Also, if possible, I'd like to emulate pressing the "Connect" button within the application.
Can someone please point me in the right direction? The name of the 8GB volume is "AIRCARD STO" and the app name is "Sprint SmartView".
Thanks in advance,
Charles

The easiest fix to this issue that I've found is to just use Sierra's software.
It means you don't get the nice built-in WWAN integration of 10.6, but whatever--it works!
http://www.macupdate.com/info.php/id/25530/sierra-wireless-watcher

Similar Messages

  • Applescript and automator

    I have studyed html for 3 days and wordpress for 3 days , word , excel for 5 days, and llustrator and photoshop 13 yeas ago for 6 months.
    and still now its so hard to understand some how.
    but I am in need of understading now with the printed documents from my computer.
    and I wonder , so there are many defferent way to communicate with anyone out side of the world, right?
    like I know email , fax, facetime,
    but there are other way now I think because of the documents I found.
    and also with applescript and automator can do anything possible like even the child can click one and start conecting etc..
    I have the copy from its ,
    does anyone have time to explain me what it is?
    It's not that of teenager who doesn't want paretns to know or else,
    but I am quite serious for my situations.
    Please Help !
    Mac OS snow leopard to lion to moutain lion,,,,,
    but I don't know when it started yet.

    Using JavaScript to script System Events wouldn't be any better, since it uses the same Apple Events mechanism (how well it uses it is another topic).  To hold down a key you would need to use something that has access to the deeper system APIs, most likely using Xcode.
    And yes, your code snippet will press the arrow key 5 times (I am guessing that the missing space in key code is a typo).  You can place the cursor in a bunch of text in another application such as TextEdit, and use your script to activate it before performing the key codes to get a better idea of what is happening (trying to reposition the cursor in the Script Editor will reveal a bug with the delay command).

  • Using Applescript and Automator to manage files and folders

    Hi all.
    I need to make a simple action via applescript and-or automator to take the file it's been applied to (via the services) create a folder around it with the same name as the file.
    So far, I've searched the web, found some solutions but none are really working.
    Here's the script I found :
    set myFolder to findFolder()
    tell application "Finder" to set myFiles to files of myFolder as alias list
    repeat with aFile in myFiles
      set bName to my baseName(aFile)
      tell application "Finder"
      set folderExists to exists folder bName of myFolder
      if not folderExists then make new folder at myFolder with properties {name:bName}
      move aFile to folder bName of myFolder
      end tell
    end repeat
    ---------------- HANDLERS ----------------
    on baseName(myFile)
      tell application "System Events" to set {fileName, fileExt} to {name, name extension} of myFile
      return text 1 thru ((get offset of "." & fileExt in fileName) - 1) of fileName
    end baseName
    on findFolder()
      activate application "SystemUIServer"
      -- Bug pointed out by Lauri Ranta http://www.openradar.me/9406282
      tell application "Finder"
      activate
      set mySelection to (get selection)
      if mySelection ≠ {} then
      set mySelection to first item of (get selection)
      if mySelection's class = folder then
      set currentFolder to mySelection
      else if mySelection's class = document file then
      set currentFolder to parent of mySelection
      else if mySelection's class = alias file then
      set currentFolder to original item of mySelection
      end if
      else
      set currentFolder to target of front Finder window
      end if
      end tell
      return (currentFolder as alias)
    end findFolder
    And here's a page where they explain how to use automator and the Services to do what I <allmost> want, with some adaptation.
    But it still doesn't work.
    http://hbase.net/2011/08/17/move-selected-files-into-a-new-folder-using-applescr ipt-and-automator/
    So if anybody has an idea n how I could do this ?
    It It could either be a folder action (I drag and drop the files into a folder and boom, they get their folder around them)that I would set on a folder on a network drive, or locally, it doesn't matter, or a service (right clic on the file and boom folder around it.
    So if anyone could help with this I'd be grateful...

    Hi,
    Make an Automator Service (Service receives selected "Files or Folders"  in the "Finder.app").
    Use this script in the "Run AppleScript" action:
    on run {input, parameters}
        tell application "Finder"
            repeat with aFile in input
                if class of (item aFile) is not folder then
                    set {tName, fileExt} to {name, name extension} of aFile
                    if fileExt is not missing value and fileExt is not "" then
                        set tName to text 1 thru -((count fileExt) + 2) of tName
                        tell (get container of aFile)
                            if not (exists folder tName) then make new folder at it with properties {name:tName}
                            move aFile to folder tName
                        end tell
                    end if
                end if
            end repeat
        end tell
    end run
    This script work on files with a name extension.

  • IWeb Applescript and Automator - scripts you shouldn't be without

    Applescript and automator will automate mundane manual repetative task that seem to take forever. These scripts fill in iWeb's void that makes it hard to implement advance features such one click ftp publishing, code editing, swithching domain site files, etc. Don't miss out on these scripts that will save you ton of time. These are scripts you shouldn't be without.
    Work smarter not harder with iWeb applescript, only from MacEzzy.
    -- Also check out the free downloadable iWeb templates.
    Powerbook G4 Ti   Mac OS X (10.4.4)  

    Thank you for your feedback.
    -- Article never mentions compressed or uncompressed. Traditionally tiff format is used for buttons and small images on web pages and jpeg is used for higher quality photos exemplified by iWeb.
    -- Search engine spiders or crawlers start from top of the page to the bottom of html pages. They craw for topic as well as content. This is exactly what appears from iWeb html pages for meta (meta name="Generator" content="iWeb 1.0.1")
    -- I am the first to admit I don't know everything but I don't make up information. I use iWeb on a daily bases and try new things to push the envelope. Things that I find helpful to me I make it available for other iWeb community users so that they don't go through tribulation.
    -- I put google ads and paypal donate buttons throughout the pages to test if iWeb is up for commercial challenge. I also tested how well the search and replace script worked. I have exemplified in macezzy website it is possible to use iWeb for business purpose. The script worked extremely well, it would have taken hours to insert google and paypal codes manually. Using the script it only took 10 min. I wanted to share that with other users who might wanted to do similar things. Sorry if that offend you, I will remove them.
    -- I never claimed to have created the script except the script that makes the first folder in documents folder. I did change the wording so that it is clear to users that they are switching sites(domain file). I did not create the awesome search and replace script either. I do mention that I have made the iWeb_ftpUpload automator.
    I have started macezzy site when iWeb was introduced and there wasn't much information about iWeb. I have and do try many things with iWeb and report to iWeb community users of things that I find helpful. I haven't made a dollar off the site and I have invested lot of my time because I like to see other users succeed.
    Powerbook G4 Ti   Mac OS X (10.4.4)  

  • Connecting WRT54g with Sprint aircard for desktop and laptop

    I am trying to setup my router with my sprint aircard on my desktop so that both my desktop and laptop can get internet. Does anyone have an idea on how to do this. i have been trying for a week now and cant get it. I have read messages every where and people say you can do it. I just cant figure it out. please help.
    Message Edited by dgrev16 on 02-02-2008 03:58 PM

    you should be able to plug you desktop into one of the numbered ports on the back of the router, that will get the desktop going, if it has an ethernet port, now with respect to the laptop, is the sprint aircard for wireless web that you pay for monthly or your adaptor to use for the router, if you pay monthly for the sprint aircard that is good and you should be able to use the laptop anywhere you want and there is sprint service to get online, does your laptop have a wirless card built in? if so you could use that to get online, let us know what you have and we can provide more support.
    Felipe Diaz
    using WRT600n

  • Applescript and Automator HELP!!!

    I have changed an application's Info.plist file to make it hidden form the dock and finder, using automator a series of actions complete. After these I want to make the applications window which is currently showing on the desktop to be hidden, however I can't seem to use commands due to this application being hidden from finder. Thanks.

    I have changed an application's Info.plist file to make it hidden form the dock and finder, using automator a series of actions complete. After these I want to make the applications window which is currently showing on the desktop to be hidden, however I can't seem to use commands due to this application being hidden from finder. Thanks.

  • Applescripts behave differently in Automator

    I’m running and Applescript that loops through the files in a folder and returns a list: each file’s name followed by its “modified date”.
    When I run the script outside Automator, it performs flawlessly.
    When I run the script inside Automator, it returns “missing value” for all files... except every 11th file!
    Apparently, it has something to do with the way AppleScript sorts the list when called by Automator.
    It’s exactly the same AppleScript, copied and pasted into Automator.
    Any ideas? Is this a bug in Automator?
    file.2.gz Thursday, February 2, 2006 7:00:00 PM
    file.20.gz missing value
    file.21.gz missing value
    file.22.gz missing value
    file.23.gz missing value
    file.24.gz missing value
    file.25.gz missing value
    file.26.gz missing value
    file.27.gz missing value
    file.28.gz missing value
    file.29.gz missing value
    file.3.gz Thursday, February 2, 2006 12:00:00 AM
    file.30.gz missing value
    file.31.gz missing value
    file.32.gz missing value
    file.33.gz missing value
    file.34.gz missing value
    file.35.gz missing value
    file.36.gz missing value
    file.37.gz missing value
    file.38.gz missing value
    file.39.gz missing value
    file.4.gz Tuesday, January 31, 2006 11:00:00 PM
    file.40.gz missing value
    file.41.gz missing value
    G5 Dual 2GHz   Mac OS X (10.4.4)   2.5GB RAM
    G5 Dual 2GHz   Mac OS X (10.4.4)   2.5GB RAM

    I think this is a bug with Finder. I've seen missing values returned at random in regular scripts. There may be something to do with the speed that Automator runs things that produces the difference you found? A simple way around would be to test for missing values before continuing. Here I give it three tries to get the correct result:
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    tell application "Finder" to repeat 3 times
    set output to the modification date of the items of input's first item
    if the result contains missing value then
    set output to {}
    else
    exit repeat
    end if
    end repeat
    return output
    end run</pre>
    PowerMac G5 (June 2004) 2x1.8GHz 1.25GB, PowerBook G4 (12-inch DVI) 1x1GHz 768MB   Mac OS X (10.4.4)  

  • Sprint AirCard DOES NOT WORK under 10.6

    I know 10.6 has built-in EVDO support. It sees my Sprint Compass 597 AirCard when I insert it. It will even connect beautifully.
    And then it works, at speeds of about 1-3KB/sec (with tons of lag). Under Mac OS X 10.5.8 with Sprint's software, I was getting ~100KB/sec.
    So I uninstall Sprint's software (you have to, in order to reinstall it). No changes.
    So I re-install Sprint's software... it works, but still not as good as 10.5.8 and NOT via 10.6's built in EVDO stuff.
    So I update my Sprint Software to the latest version (2.25) and it simply doesn't work AT ALL now. I am told (when trying to using Sprint SmartView) that the drivers are too old to use... uh...
    So, yea, basically Sprint AirCard's until 10.6 are useless. As a road warrior, I'm not pleased.
    Anyone have any advice?

    The easiest fix to this issue that I've found is to just use Sierra's software.
    It means you don't get the nice built-in WWAN integration of 10.6, but whatever--it works!
    http://www.macupdate.com/info.php/id/25530/sierra-wireless-watcher

  • How do I unlock an iphone 5 with Sprint. The SIM is in and Sprint gave me the unlock code, but what are the steps to unlock it?

    How do I unlock an iphone 5 with Sprint 15.1 at IOS 7.0.6 IMEI 99 000320 012095 0 .
    The SIM is in and Sprint gave me the unlock code, but what are the steps to unlock it?

    There is no such thing as an unlock code.   Sprint may have processed the unlock, and then requested you restore the iPhone using iTunes to complete it. But that's it. There is no code to enter, and nowhere to enter it any way.
    iPhone: About unlocking

  • Need help with applescript and Xcode 4.3.2

    I'm trying to write my first application that will involve a GUI. I can code applescript using script editor with a bit of effort, but I'm want to have users input more than one piece of information in the pop up. So, I download xcode, create my first applescript cocoa project go to MainMenu.xib and add a bunch of labels, text fields and buttons. Looks fairly nice... Go to start it and... nothing (well the window pops up, but it doesn't do anything). Unfortunately, I haven't figured out how to link the window to the applescript... So, how do I...
    * Have the applescript prepopulate data in the text fields and pulldowns
    * Once the user changes the data in the fields tell the applescript
    * Tell the window to close and pass the control back to the applescript once either the cancel or submit button is pressed.
    More detailed...
    * What's an outlet and how do I use it here? Which of the 18 outlet(s) do i use for this?
    * What's a property (referenced on one of the web pages I saw around applescript and cocoa) and do I need them here?
    Looking at the documentation with xcode, there isn't a lot about xcode and applescipt. Looking at the web, the top links are a few years old. So, links to good relevent documentation would be very nice as well as direct answers to the questions
    Thanks,
    Scott

    I'm not sure why you are closing it, but the NSApplication class is what keeps track of the windows.  If you don't want to connect the window to an outlet from the interface editor, you can use something like
    set theWindow to current application's NSApplication's sharedApplication's mainWindow()
    ...and from there you can use whatever NSWindow methods, for example
    theWindow's performClose_(me)

  • Best Buy and Sprint have no sense of morals- I do not recommend either

    I would just like to take the time to post about how Sprint and Best Buy have done a really wonderful job of screwing my monthly budget and account. My ex and I still share the same phone plan and he needed to upgrade his phone. He went into a Best Buy Mobile store to complete this upgrade and the sales associate at Best Buy needed me to provide my "Security Code" to open the account and complete the transaction. Well while the associate had my account opened they allowed my ex to open NEW SERVICES ON MY ACCOUNT. When I found out the new services had been open the 14 day return window had passed AND not to mention that the only way I was made aware of such services was by receiving my bill AFTER THE 14 DAY RETURN WINDOW. Completely absurd and a violation in contractual law. I contacted Sprint on several occasions- was left on hold for 45 minutes, hung up on, transferred from one dept to the next, promised return calls- you name the worst customer experience and Sprint has matched it. Apparently Sprint's take on the whole incident was that once you provide your "Security Code" to the representative you are giving access to do anything and everything on your account- it baffles me bc that is almost saying if someone walks into a bank and has my social security number that they should be able to borrow money in my name. I would not recommend Sprint services to anyone. After speaking on the phone with the Asst. Manager of the Best Buy location that allowed such NEW services to be opened under my account they were unwilling to assist me in rectifying this problem. I was told that I could sit on the phone with Sprint while the associate ate his dinner in the back. I sat there for 45 minutes and they were unable to offer me any resolution for their error. I have purchased thousands of dollars in goods at Best Buy but at the end of the day I will NOT be returning to the store with my business. I will be placing a complaint with the NY Attorney General's office against both Sprint and Best Buy for their lack of care when handling accounts on behalf of customers.

    Hello User834811-
    It was definite nice of you to allow your ex-boyfriend to remain on your phone plan.  I’m sorry to hear that he may have taken advantage of that generosity by opening some new services which have added to your bill.
    Regrettably, by providing that security code to our sales associate and allowing your ex-boyfriend to be on the account, we cannot be responsible for any extra services that he started.  While it is painful to hear, this sounds like something that you need to discuss with him, especially if it’s financially impacting you.  I can also only recommend working with Sprint to see what assistance they can provide to either cancel or refund those services.
    I absolutely apologize that you were treated this way by the store.  It’s one thing to advise a customer that the manager is currently unavailable and another to phrase it the way the store did.  I will be documenting this for the store as it sounds like the associate your spoke with could use some additional training on how to handle these situations.
    Sincerely,
    Bill|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • Is this possible in AppleScript and if so how ?

    I am trying to make an app that opens AppleScript and types in things.  I then want the AppleScript that the other Applescript wrote to save as an application, and rename it.  Is this possible and if so, can you give me an example?

    If I'm following what you want, the applescript editor is fully scriptable.  In fact, there are a bunch of applescript samples in /Library/Scripts/Script Editor Scripts/ that show you how to use applescript to write and compile applescript code into a new window.  Just for a quick-and-dumb example:
    set the target_string to "X-X-X"
    set the script_text to "display dialog \"" & target_string & "\" buttons {\"OK\"} default button 1" & return
    set outputPath to POSIX path of (path to desktop folder from user domain) & "test.app"
    tell application "AppleScript Editor"
              activate
              set newDoc to make new document
              tell newDoc
                        set its text to script_text
                        try
                                  check syntax
                                  compile
                        end try
                        save in outputPath as "com.apple.application"
              end tell
    end tell

  • Applescript and ditto

    Hey all at the moment I am using this script to invoke the ditto command
    I use this method because I can at least see the progress
    but I would like something a bit better
    like a display dialog at least that counts the amount of files and starts from 1 to what ever it is or some sort of percentage.
    the bottom script does not open terminal and I would like to use the display dialog in the bottom script. is this possible.
    I tried using 3rd party progress bars with no luck.
    I am not very smart on coding. I only no a bit of applescript and unix.
    Have been playing with xcode and interface builder but can never get the progress indicator to actually work for me.
    set source to (choose folder with prompt "Select the Source folder")
    set destination to (choose folder with prompt "Select the Destination folder")
    set source_unix to quoted form of POSIX path of source
    set destination_unix to quoted form of POSIX path of destination
    tell application "Terminal"
    activate
    delay 2
    do script ("ditto -V -rsrc " & (source_unix) & space & (destination_unix))
    end tell
    But.......
    I rather use
    set source to choose folder
    set destination to choose folder
    set source_unix to quoted form of POSIX path of source
    set destination_unix to quoted form of POSIX path of destination
    do shell script "ditto -V -rsrc " & source_unix & space & destination_unix
    any help on this would be great
    like I said I would like a loading bar but a display dialog giving me some indication on time -- percentage -- or file count would be great

    the bottom script does not open terminal and I would like to use the display dialog in the bottom script. is this possible.
    It can be done, but it takes a bit of extra work.
    The issue is that when you invoke do shell script, AppleScript hands control over to the script and does not do anything else until that script returns control back to AppleScript. Therefore there's no way to display your progress dialog - AppleScript doesn't get a look-in until the script completes.
    That's largely because in most cases you want your script to react to the results of the shell command and you can't do that if the command hasn't finished.
    The exception to this rule is that you can tell the shell command to return control immediately to your script. This will let you run other AppleScript commands while the shell command executes in the background.
    You do this by appending " > /dev/null 2>&1 &" to the end of the command. This redirects the output of the command to /dev/null and sends it to the background so that AppleScript can continue.
    The trick now is in getting AppleScript to know the shell command's status.
    For that the typical solution involves outputting the shell command's result to a temporary file (rather than /dev/null) which you can then read in via AppleScript. What you need now is knowing when the shell command is done which relies on another shell trick (hack?) that tells you the PID of the most recently launched command - you can use that to query if the process is still running.
    So your command should end up like:
    -- do your shell command:
    do shell script "ditto -V -rsrc " & source_unix & space & destination_unix & " > /var/tmp/my.log 2>&1 & echo $!"
      -- 'echo $!' allows you to capture the PID of that process
    set thePID to the result
    try
      repeat
        -- does the PID exist?
        do shell script "ps -p" & thePID
        -- so show progress
        display dialog (do shell script "tail -1 /var/tmp/my.log") giving up after 2
      end repeat
    on error
      -- we're done, so clean up
      do shell script "rm /var/tmp/my.log
    end try
    The revised do shell script command writes ditto's output to /var/tmp/my.log and returns the PID of that process. The repeat loop then repeatedly checks that PID's status (via ps -p). If the process is running that command succeeds so the script progresses to the 'display dialog' command where it shows you the last line of the log file (you can change this to show anything you like).
    If the ps -p command fails because the process is no longer running, that trips the on error clause in the try block which cleans up the temp file.

  • AppleScript and MIDI comms - is that possible?

    I'm getting into AppleScript, had a lot of fun with FaceSpan - now I want to talk to my musical instruments over MIDI, how can I do that using AppleScript? It seems I need some "interface" between the AppleScript and the serial port. My latest idea is to somehow use OMS or even MIDI Manager but are these scriptable?
    I have an idea that an "interface" might be possible that has been designed just to be scriptable, maybe this item already exists?? does it?
    Basically this is the scheme:
    AppleScript ->scriptable doofer -> serial port -> midi interface
    the part I need to know about is the "scriptable doofer"
    I'm using OS7-9 with OSX I believe MidiPipe would be the answer.

    Ilonakalenik wrote:
    I want to unlock my phone from a version carrier to an at and t carrier is that possible ? And how
    If you mean Verizon, then no, you cannot

  • Integrate webcenter capture and imaging for automating AP invoice process

    I need detailed document to understand how this integration is done and worked for automating AP invoice process.

    It turns out the process I had built in Process Builder was okay.
    I needed to setup a Process Injector to send the images in my IPM image
    application into the process and build a Work List.
    So, I get now get a worklist of packages on the E-Business side
    and can open images for the packages.
    Now, I need to work on the update process to update the related
    index values for the image, any help for updating image index values
    would be great.
    Thanks

Maybe you are looking for

  • How to display page no for different master pages in one adobe form application

    Hi All, we have requirement where we need to  display page nos in different master pages in one single adobe form. For the First form the page nos should be displayed pgno of total pages and for 2nd form the page no shuld be displayed as pgno of tota

  • 3 way color correction preview problem

    I can't see any changes in Visual Mode on my external monitor. Its outputted from a Aja Kona LH. The changes are visible in FCP so I know its working but need to be able to see it on my calibrated HD JVC LCD. I can see adjustments in numerical mode.

  • AS fails to identify an image placed in html text via an img tag in a TextArea, while doing so correctly with textField.

    A best-efforts session with identifying, in ActionScript, an image placed in a TextArea and identified with id, leads me to wonder whether the id attribute is supported. I have on disk a jpeg file of the amazom.com logo, a small image. In a scene, I

  • Order of the sql operation

    hi experts, I want to clear my basic concepts here. I want to know the order of the sql operation. actually the problem with me that i have read from different blog and websites about the order of operation of the sqkl queries , hence i am confused h

  • Bill of   lading smartform

    Hi,        I copied LE_SHP_DELNOTE and RVADTR01 to z and configured do i need to change any thing in driver program  i mean in ZRVADTR01? <<removed>> tell me the procedure how to work with it . Edited by: Dev__D on Jul 2, 2009 3:00 AM Edited by: Vija