Making an airport script - Help!!

I have no idea how to make scripts but I would love if somebody could make one for me
I want it to do this:
1. Turn Airport ON
2. Disconnect it from any network. (As they may auto-connect)
3. sudo ifconfig en1 lladdr (mac address here)
4. Connect it to (my wireless network)
I want it to be able to be changed script editor so I can enter my MAC address and the network name I want it to join. If it's possible.
The network reconnect is not very important but it would be good..
Message was edited by: macmansimo

You should be able to do this using an Automator Workflow (using the *Run Shell Script* ), a couple of Network Locations configured the way you want, and the command line command scselect to switch network locations, as well as your ifconfig command (these get run via the Automator Workflow *Run Shell Script*

Similar Messages

  • Does making objects equal null help the gc handle memory leakage problems

    hi all,
    does making objects equal null help the gc handle memory leakage problems ?
    does that help out the gc to collect unwanted objects ??
    and how can I free memory avoid memory leakage problems on devices ??
    best regards,
    Message was edited by:
    happy_life

    Comments inlined:
    does making objects equal null help the gc handle
    memory leakage problems ?To an extent yes. During the mark phase it will be easier for the GC to identify the nullified objects on the heap while doing reference analysis.
    does that help out the gc to collect unwanted objects
    ??Same answer as earlier, Eventhough you nullify the object you cannot eliminate the reference analysis phase of GC which definitelely would take some time.
    and how can I free memory avoid memory leakage
    problems on devices ??There is nothing like soft/weak reference stuffs that you get in J2SE as far as J2ME is concerned with. Also, user is not allowed to control GC behavior. Even if you use System.gc() call you are never sure when it would trigger the GC thread. Kindly as far as possible do not create new object instances or try to reuse the instantiated objects.
    ~Mohan

  • Gallery script help, please

    Gallery script help, please
    Hello,
    I'm new to actionscript in general, I do know a little...
    I foung a gallery script, modified many things, the images
    open fine, everything is working, but here's the thing:
    the gallery is in 3 sections, red, blue and yellow.
    I would like to know how, what, and where to put a script so
    that if a "the small red image #1" is clicked, I can load any sort
    of a movie on top of the "the BIG red image #1" or #2 or 3 and so
    on...same goes for the blue and yellow...
    If I figured things correctly on my own...the small thumbnail
    images of the gallery are not buttons, that's why I can't attach a
    movie (let's say) to them...but it is all written in script, using
    the horizontal and vertical position of the mouse to open the large
    images of the gallery...
    So, I don't know how to figure things out, to attach a
    specific movie to a specific thumbnail...
    p.s.: I think the script that controls the gallery is in
    symbol 120
    I really would appreciate the help
    Merry Christmas in advance to everyone
    Sandra
    here are all the files...
    http://www.gentro.ca/sandra_test.zip

    There's a great tutorial on kirupa...
    click
    here for link

  • Firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please

    firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • My ipad 2 and ipod touch keeps on dropping wifi connection,  would getting an apple router or maybe airport express help?

    ipad 2 and ipod touch  keeps on dropping wifi, would upgrading to an apple router/airport express help?  all my other pc's work well with my current network.

    Have you checked for a firmware update for your current router?
    What make, model, version router do you have?

  • Ipods come up with red cross and making weird noise? help?

    ipods come up with red cross and making weird noise? help?

    you may have to contact apple support 1-800-275-2273
    whenever you get the red cross it is a signal of a possible hardware issue especially if the ipod is making odd clicking noises

  • Need help making a simple script for my webcam

    Hey everyone, fairly new to applescript programming. I just bought a usb camera for my macbook because I use it for video conferencing/playing around, and it is better quality than the built in isight. However, in order to use this camera I need to use drivers from a program called camTwist. This being said camTwist needs to be opened first and the usb camera must be selected from camTwist Step 1 list in order for any other application to use the camera. I just want to make a simple program that would open camTwist first, then select "webcam" from the list (double click it like I always have to in order to select it) in order to activate the driver, and then open photo booth which would then be using the camTwist driver in order to take pictures.
    I made a crude program but it does not automatically select "webcam" from the Step 1 list in camTwist:
    tell application "CamTwist" to activate
    delay 10
    tell application "Photo Booth" to activate
    that’s basically it. I set the delay to 10 seconds so that when camTwists boots up first I can manually select my webcam. HOWEVER, I would like to make a script that would boot up CamTwist first, select my webcam from the list automatically, and then open Photo Booth with the CamTwist webcam driver already selected.
    Don't know much about applescript so any help to make a working script to solve my problem would be greatly appreciated! Thanks!

    Solved my problem but now I need help with something else! First I used CamTwist user options to create user defined hot keys with the specific purpose to load the webcam. I chose Command+B. I tested it out in CamTwist and it worked. The program follows a logical order from there. First it loads CamTwist, then after a short delay it presses the hot keys in order to load the webcam from the video source list, then another short delay and Photo Booth is opened with the driver loaded from camTwist. Everything works Perfect! Here's the code:
    tell application "System Events"
    tell application "CamTwist" to activate
    delay 0.5
    --Press command+b which is a user defined hot key to load webcam
    key code 11 using command down
    end tell
    delay 0.5
    tell application "Photo Booth" to activate
    My Next question is, would it be possible with this same script to have both applications quit together. For example I always quit Photo Booth first, so when I quit photo booth is there a way to make CamTwist also quit and keep everything within the same script? Please let me know. This forum has been very helpful and lead me to a solution to my problem! Hoping I can solve this next problem as well! Thanks everyone.

  • I need help making a backup script

    I'm trying to create this full system backup script that I plan to run manually. I have some commands to compress and extract my root directory and everything in it, but they're not complete because there are a few other features I would like to have. The problem is that I have no idea how to implement these specific features, and my googling of bash scripting documentation only left me confused and at square 1. This is what I have so far (just commands I can run in the terminal):
    To compress:
    sudo tar -cpf ~/archive.tar.gz / --exclude=/proc
    To extract & restore:
    sudo tar -xpf /home/agi/archive.tar.gz -C /
    I want this script to:
    1. allows me to run as
    sh ~/.bin/backup.sh [directory to back up]
    What I mean is there should be some sort of parameter in the script so that when I run it, I can choose whatever directory I want to compress rather than just be limited to just /.
    2. puts finished .tar.gz in my home directory (I plan to transfer the archive to external media or online later; this gives me the freedom to not need to have a specific drive connected to run the script). I already have this in the commands, but I just wanted to point out that this is important.
    3. names finished .tar.gz DD-MM-YY-backup.tar.gz where DD is day, MM is month, YY is year.
    4. the "sudo" part works correctly. That is, the script, when run, asks for a password and can be granted root permissions (or is granted root permissions in some other way) so that I can back up all parts of my system without these sorts of errors.
    5. shows some sort of progress indicator. Either a progress bar, shows the tar program output, or something that gives me an indication that the script is working and perhaps how long it will take. This one is really optional, for as long as the process is working properly then I'm ok. But if it is possible and not ridiculously complicated or difficult, it would be very nice.

    What I mean is there should be some sort of parameter in the script so that when I run it, I can choose whatever directory I want to compress rather than just be limited to just /.
    On my backup script, I specify $* which should accept any arguments passed to the script.. ex: $ ./backup.sh /source/folder /source/folder2.
    in the script:
    #!/bin/sh
    tar -cpf $HOME/$(date +%d%m%Y)-backup.tar.gz $* --exclude=/proc
    2. puts finished .tar.gz in my home directory (I plan to transfer the archive to external media or online later; this gives me the freedom to not need to have a specific drive connected to run the script). I already have this in the commands, but I just wanted to point out that this is important.
    In the above script, that is what the ~ or $HOME should do..
    3. names finished .tar.gz DD-MM-YY-backup.tar.gz where DD is day, MM is month, YY is year.
    Same thing, the above script should do the trick, you might want to modify the date parameters (check the date manual)
    4. the "sudo" part works correctly. That is, the script, when run, asks for a password and can be granted root permissions (or is granted root permissions in some other way) so that I can back up all parts of my system without these sorts of errors.
    You could put something to prevent the script from running unless you are root, or you could have it prompt for a password and use sudo within the script. I would recommend the first. Here is a code snippet:
    #Check for root
    if [ $(whoami) != "root" ]; then
    echo "Error: You cannot perform this operation unless you are root"
    exit 1
    fi
    5. shows some sort of progress indicator. Either a progress bar, shows the tar program output, or something that gives me an indication that the script is working and perhaps how long it will take. This one is really optional, for as long as the process is working properly then I'm ok. But if it is possible and not ridiculously complicated or difficult, it would be very nice.
    You might be able to use a similar program to tar, but with progress. Maybe someone else could shed some light here..
    Hope this helps...

  • Help me making a deamon script for a specific eth0 configuration

    hi
    my idea is to have a daemon script for configuring my eth0 device with specific settings to connect to my xbox.
    i"ve got no idea on how to wirite a daemon script, so i hope to get some help from the community
    eth0 sould have:
    192.168.1.33  as ip
    255.255.255.0 as netmask
    192.168.1.1.55  as gateway

    kriz wrote:
    i k'no its possible with network deamon, but its a great investement to uncomment everytime my rc.conf, then /etc/rc.d/network start...
    i"m using by default my wireless to connect to internet
    don't want to use netcfg. want something like wpa_auto does for wireless conectons, just for eth0 specific settings
    You need to uncomment it once and set the correct values. That's it.

  • Action Script Help (Flash 8 ONLY)

    My department currently has a host of training videos we use
    for online courses. Of course, these are all being delivered as
    FLVs. Through the Developer's communities, I found a script that
    allowed me to add a caption file to the video (XML).
    Now I'd like to take it to another level. I'd like to be able
    to have my one SWF player play a series of FLVs AND include the
    caption file. I began to look at using an Array, but have not been
    successful in making it work. I'm not too sure, but I think the way
    I coded it started to affect the video - started getting "stuck" at
    times. Another attempt caused the caption file from the previous to
    be seen in the current video.
    I have attached my script and would appreciate any
    assistance.
    Finally, I need to stick to a Flash 8 and Action Script 2.0
    solution. I realize that Flash 9 and Action Script 3.0 would be
    helpful, but our district PCs are all imaged with a Flash 8 player.
    Sorry.
    Thank you for your help.
    Frank Erazo ([email protected])

    Whatever approach you take will depend heavily on the document(s) you have for the bible element of the design.  You somehow need to be able to seek within it and determine where matched elements can be found and how to extract the information you intend to present.
    I don't think your issue currently lies with how to do this in Flash as much as first coming up with a gameplan that identifies the players and how you can interact with and within them.

  • IBook G4 (Mid 2005) - AirPort 'disappeared' - Help!

    Hello.
    I'm an owner of an iBook G4 (Mid 2005) @ 1.33GHz.
    It's been working perfectly since it has been bought. Till yesterday...
    It came with Tiger, but some time ago I ordered Leopard. Everything was still working fine. But few days ago I decided to update OS to 10.5.2. After that it was still OK.
    I use XAMPP (Apache Distribution with MySQL and other stuff). It set up permissions for 'nobody' on /Applications/xampp where I keep my site's files. Every time I wanted to save a file there (using BBEdit) I had to authenticate.
    Yesterday, I got back to work on my site and when I tried to save a file and authenticated - whole system just freezed. But before, Software Update showed up and said that the Leopard Graphics update is ready to be installed, but I didn't want to update that time so I closed it.
    I think that might be caused by some permissions' violation between some applications using that directory (I had few web browsers open, and my server was accessible via AirPort at all). I hard-reset my iBook.
    When Mac OS got loaded - I noticed that my AirPort Extreme card is no longer recognized.
    http://www.wroclaw.mm.pl/~kaziorvb/no_airport.png
    http://www.wroclaw.mm.pl/~kaziorvb/no_airport2.png
    That was really weird.. It just disappeared..
    First, I tried resetting PMU. No result. Also reset PRAM. Then safe-booted.
    Amazingly - AirPort was back! So I decided to reboot and just get back to work, but it disappeared once again. Tried resetting PMU and PRAM again and again, but with no results... I shut it down and opened it.
    It's the last revision, so the AirPort card is not normally accessible.
    Closed it, and booted once again. Still no AirPort...
    I installed that update mentioned before by downloading it manually from Apple Downloads. It didn't change anything.
    As I borrowed my Leopard Install DVD to my friend who's got a new iMac and lost his own, I performed a Hardware Test using my old Tiger (10.4.2) Installation DVD.
    It didn't find any problems:
    Test Results
    AirPort - Passed
    Logic Board - Passed
    Mass Storage - Passed
    Memory - Passed
    Modem - Device found (What about this one? Is it normal?)
    Video RAM - Passed
    and in the Hardware Profile:
    Communication
    Ethernet HW address: xxx
    AirPort card: AirPort Extreme
    Bluetooth: Present
    FireWire devices: Not present
    It all just appeared to be OK, and my issues were only software-related.
    I thought of performing a clean Mac OS X Tiger installation, so I started making backup.
    Booted normally and again, the AirPort was back! Found my home network, typed in the password and successfully connected. After a while I got a kernel panic, so I had to restart the machine.
    Again, AirPort was on. This time I managed to connect to the internet. Did all the backup, but then I got another kernel panic. I reset the PMU, what resulted losing AirPort again.
    I thought that system reinstallation will fix all my problems, but I was wrong. Freshly installed Tiger couldn't see the AirPort card. Same after update to 10.4.11. I did all the PMU, PRAM, safe-booting tricks, but never resulting.
    I also tried typing 'reset-nvram','set-defaults' and 'reset-all' in the Open Firmware console or typing 'sudo touch /System/Library/Extensions/' in the Terminal. Still no results.
    What should I do ? I really don't want to pay boatloads to get it repaired..
    Help
    kaziorvb

    Thanks for your response.
    Anyway, I fixed it manually using Warren's tutorial @ Applintosh.
    Thank you, Warren!

  • Buttons scripting help

    Hi,
    I have been working on making a menu for list items but have not had much luck scripting (due to lack of knowledge and time restrictions any help would be great)!
    The file below has an amimated menu.
    if you click on Artificial Intelligence on frame 60,  it jumps to frame 61 (a specific section for that list item).
    How do I make the Artificial Intelligence button on frame 61 jump back to frame 60?
    I dont know where to add the action script for the function please can you help.
    I need to add a similar script to all 9 list items, do they go on one actionscript file? if so what location?
    https://docs.google.com/uc?id=0B4AYjZnEYbN0NzY1NDM5MGQtYjM3My00OTA4LWExMmYtN2RmYzdhMTljNzU 3&export=download&authkey=CKbuuKAP&hl=en
    Thanks in advance.
    r.

    Yes, that makes sense, I tried it and all seems to be working fine, now I have to try and impliment this to 9 list items and have an idea that each action script ought to go within the frame itself.
    Some one also suggested that I use this script that I have not tried yet but looks neat just incase anyone is interested:
    import flash.events.MouseEvent;
    var atHome:Boolean = true;
    AIbutton.addEventListener(MouseEvent.CLICK, AItoggle);
    function AItoggle(e:MouseEvent):void{
        if (atHome == true){
            gotoAndStop(frame lable/frame number);
            atHome = false;
        } else {
            gotoAndStop("home"/frame lable);
            atHome = true;
    I will try this next to see what ahppens, it will save me from creating a lot of duplicate list items (one for home page, one for specific frame).
    Thank you for the help, I was stuck!

  • Seeking Archiving Script Help

    I have heard several requests now for the exact same issue I have been looking to have resolved and did a little poking around but really need help beyond this point.
    First my iBook only has a 20Gig drive and so I need to be considerate of how I use it. Storing 10Gigs of photos is not an option. More than that I don't WANT 10Gigs of photos loaded all at once. My uses make an external DVD burner more effective (and scalable) than an external HD. What I want is the ability to store all my iPhoto data with thumbnails of every image I own but archive any full size versions I choose to DVD and remove it from the HD. This would give the desired space savings and organizational capabilities I am looking for.
    I had already backed up my entire Library as it was created to CD but found that considerably less orderly than I had imagined. Now I have several discs that can only fit so much info on the label and it can be very difficult to find the disc with the image I am looking for. Besides that I have multiple copies of some images burned onto multiple discs as I accidentally reburned an Album of pictures I use most often. A good thing for backup but really crappy for version tracking and organization.
    If I could get iPhoto to keep a note of which disc the image is backed up to, problem solved.
    So I start tinkering a bit and found some scripts online (through Apple?). One of which was "Show Image File". Above all I have found this particularly useful. I used it to find specific images which I then tested some questions. Mainly what would happen if I duplicated the Thumbnail and replaced the main image. It was difficult to tell as it looked exactly the same. So I tried a different image which ends up being a smaller file size anyway. Turns out iPhoto will display the new image as long as it is in the same place with the same name, and is the same file type. I then add a note in the comments field for the disc the image is stored on and TADA I get smaller files, data functionality, disc note, and the original thumbnails at small image sorting (the new image only displays at large viewing).
    BUT that takes a bit of manipulation. I suspect it could be Scripted and automated but I don't know scripting well enough to try it. Is there someone out there willing to fiddle with this hack and scripting it? Pretty Please?!!
    I have screen shots of the results but don't know how to put them up here. If you would like to see them send me an email. There are two jpg's about 50k.
    Thanks
    Mehkael

    HI, Mehkael. If I understand you correctly, you would like to "repurpose" your iPhoto Library folder. Instead of being the place where your primary image files are stored, organized, and worked on and with, you would like to make the library an index to the storage locations of your primary image files outside of the library.
    As Brie Fly and Peter have suggested, this would be using iPhoto to perform a function for which it was not designed while ignoring all the uses (image editing, album and book creation, preparing images for emailing or the web, printing, ordering prints, etc.) for which it was designed. With extensive original scripting, it might be possible to accomplish what you want, but you would be working in diametric opposition to the design intent of iPhoto all the way. iPhoto is built to maintain a unified photo library in one place, and to provide direct access to all the original or edited images in the library for a variety of uses from within the iPhoto application. Keeping only reduced-resolution copies of your images in your iPhoto Library folder (to save disk space) would prevent you from making any other use of the program than the one you contemplate. Meanwhile, there is a whole category of applications — "digital asset management" software — specifically designed to keep track of a dispersed photo library of original, full-sized image files spread over many different storage volumes on various media types. The best of these applications (Extensis Portfolio and Canto Cumulus among them; I have an old version of Portfolio) are designed for professional users and more expensive than iPhoto; that may be an important consideration for you.
    I suspect there are also less sophisticated and less expensive apps that might meet your need. One little app that I own, but haven't used extensively enough to know how well it might serve you, is ViewIt. And though I'm not familiar with iPhoto 6, I understand that it permits the user to store photos in multiple locations but have them within a single library. Perhaps that would be useful in your situation, it if doesn't limit you to seeing thumbnails only of images that are stored on currently accessible volumes/discs.
    For iPhoto users who haven't upgraded to v. 6, creating and maintaining multiple iPhoto Library folders on different media is a commonplace and useful sorting-and-storage technique — though of course it doesn't allow you to view the contents of any library that isn't on a currently accessible volume/disc.

  • Script Help - Adding Users from AD Group to Computer Object Attribute

    Environment:
    Computer Objects have the following name convention - USERNAME-INV#-PC.  An example is TEST1-54321-D.  There is a GPO in place that adds any user populated under the managedBy attribute in a computer object to the administrators group for that computer
    object.
    Scenario:
    Create "Local PC Admin" group
    When user TEST1 gets added to the "Local PC Admin" group, a powershell script that runs on an hourly scheduled task goes out and finds any computer object (that is not a server) that has TEST1 in its name.  For example, TEST1-54321-D for desktop
    and TEST1-98765-L for laptop.
    It then adds the user to the managedBy attribute of the computer object and appends the text "added as local admin on <currentdate>" to the computerobject description.
    If TEST2 is added to the group later, the script should see that TEST1 has already been added and only add TEST2 to the managedBy attribute to the appropriate computer as well as the "added as local admin on <currentdate>".
    Still thinking how this can be automated when a user is removed from the "Local PC Admin" group.
    Can somebody please find holes in this scenario or suggest a better method to approach this?

    Security nightmare?  How so?  Regular domain users cannot modify the "managedBy"  computer object attribute.
    The "Local PC Admin" group would be a ADUC security group.  The Help Desk and Network Admins would be the only ones that can either add users to the group or directly modify the "managedBy" computer object attribute.
    The Group Policy that runs against the desktops/laptops looks to see if the managedBy attribute of the computer object is populated.  If so, it adds that user as a local admin to their workstation/laptop and removes any other user/group not specified
    and given local admin rights.  This would only be done for a handful of users (those in the Local PC Admin group) that need admin access ; in other words, the attribute would only be populated for a few computer objects and not the entire organization.
     If it is not populated, it does nothing and leaves the default admins on it. 
    More info on how the GPO works here: http://fbinotto.blogspot.com/2014/01/making-user-object-set-in-managedby.html

  • Time Capsule with existing Airport Extreme--Help

    I just bought a new 20 inch iMac with a Time Capsule for home. I have an existing Airport Extreme and there are a number of peripherals (2 iBooks, Playstation 3) which feed off of this airport. What I want to do is make the Time Capsule accessible only to my new iMac and keep the other network intact. I disconnected my DSL from my Extreme and connected it to the Time Capsule. It works fine. My thought was then to run an ethernet line from the back of the TC to the Extreme. I did this, got a green reception signal on the ethernet from the TC, but am unable to make the Extreme work as it did before. I know I'm doing something wrong--possibly the config on the Extreme--but I'm clueless as to making this work. Any help would be appreciated.
    Thanks

    Do exactly what you describe but place the secondary router in bridge mode then configure its wireless.

Maybe you are looking for

  • Itunes to Iphone prob

    I have alot of songs in my itunes library and on my ipod. I tried to drag the songs from the library or purchased (like I normally do for my ipod) into the iphone and it won't let me. Is there something else I should do?

  • Is it possible to connect a local file server to 365 onedrive via sharepoint?

    We have our local 2012 file server with everyones document directories and common shares. We use AD and have all user accounts defined. As part of our K12 licensing we have Office 365 E1 for all staff, so I set up the Azure AD Sync and we now have al

  • Service intermittent past 24 hours

     For last 24 hours service has been dropping frequently, loosing signal everything few minutes, when signal is there it appears normal. Had bt infinity for almost 2months, first time this has happened, will reboot hub to see if that clears up, A coup

  • Importing Standard POs 11.0.3

    Does anybody have any experience importing standard purchase orders into Oracle Applications 11.0.3? The Purchasing Documents Open Interface (POXPDOI) only supports requisitions and blanket POs in 11.0.3. Standard purchase orders are supported by the

  • HT4531 it will not turn on

    I cannot turn the nano back on. It does turn on while connected to itunes but once I disconnect from itunes it seem that it will not turn on. Can anyone help with this issue. I do hold the sleep/wake button more than 6 seconds.