Learning Unix and AppleScript on Lion

Hi everyone,
I want to learn Unix on OS X Lion and AppleScripts very well. I've been a Mac user since Tiger OS X, but now I've decided to be serious about Unix and AppleScript. Can anybody recommend good books for this purpose. I would like to have books which start from basics but later go on to great details to fully explore these two things. I really need expert opinion here, plz.
Best,
Naveen

If you already know something about unix commands, there is a scripting tutorial at http://www.tldp.org/LDP/abs/html/index.html
If you need a tutorial on unix commands, http://osxfaq.com/Tutorials/LearningCenter/UnixTutorials/LoseTheMouse/index.ws had a pretty good tutorial, although at the moment, that link isn't loading for me now so I don't know if it is still up online or not.
for creating logout hooks, http://www.bombich.com/mactips/loginhooks.html might help.
Also, in Terminal, type man launchd.plist if you can think of a scenario where you could implement a "cron-like" solution. Then refer to Apple's own periodic daily/weekly/monthly launchd plists (com.apple.periodic-*ly.plist) at/System/Library/LaunchDaemons/. There are more triggers available than just day/date/time, such as "watchPaths" and "RunAtLoad." Home grown launchd plists ones should go in /Library/LaunchDaemons/ or Library/LaunchAgents, not /System/Library/LaunchDaemons/. Also man launchd (no ".plist").

Similar Messages

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • I have a need to update my OS. Should I go slowly and move to Lion (10.7) or go full blast and update to Yosemite (10.10)?

    I have a need to update my OS from 10.6.8. Should I go slowly and move to Lion (10.7) or go full blast and update to Yosemite (10.10)?

    Before embarking on a major OS upgrade, it would be wise, advisable and very prudent if you backup your current system to an external connected and Mac formatted Flash drive OR externally connected USB, Thunderbolt or FireWire 800, Mac formatted hard drive. Then, use either OS X Time Machine app to backup your entire system to the external drive OR purchase, install and use a data cloning app, like CarbonCopyCloner or SuperDuper, to make an exact and bootable copy (clone) of your entire Mac's internal hard drive. This step is really needed in case something goes wrong with the install of the new OS or you simply do not like the new OS, you have a very easy way/procedure to return your Mac to its former working state.
    Then, determine if your Mac meets ALL minimum system install requirements.
    OS X 10.7 Lion system requirements
    Purchased emailed download code here.
    http://store.apple.com/us/product/D6106Z/A/os-x-lion
    To use OS X 10.7 Lion, make sure your computer has the following:
    An Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    Mac OS X v10.6.6 or later to install via the Mac App Store (v10.6.8 recommended)
    7 GB of available disk space
    2 GB of RAM
    To install OS X  10.8 Mountain Lion, 10.9 Mavericks (free upgrade, but currently unavailable) or OS X 10.10 Yosemite (currently available free upgrade) you need one of these Macs:
    OS X 10.8 Mountain Lion purchased emailed download code here.
    http://store.apple.com/us/product/D6377Z/A/os-x-mountain-lion
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later),
    MacBook Pro (15-inch or 17-inch, Mid/Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mountain Lion, Lion, or Snow Leopard v10.6.8 already installed
    2 GB or more of memory (I strongly advise, at least, 4 GBs of RAM or more)
    8 GB or more of available space
    Next,
    If you run any older Mac software from the earlier PowerPC Macs, then none of this software will work with the newer OS X versions (10.7 and onward). OS X Snow Leopard had a magical and invisible PowerPC emulation application, called Rosetta, that worked seamlessly in the background that still allowed older PowerPC coded software to still operate in a Intel CPU Mac.
    The use of Rosetta ended with OS X Snow Leopard as the Rosetta application was licensed to Apple, from a software company called Transitive, which got bought out, I believe, by IBM and Appe  could no longer secure their rights to continue to use Rosetta in later versions of OS X.
    So, you would need to check to see if you have software on your Mac that maybe older than, say, 2006 or older.
    Also, check for app compatibilty  here.
    http://roaringapps.com/
    If you have any commercial antivirus installed and/or hard drive cleaning apps installed on your Mac, like MacKeeper, CleanMyMac, TuneUpMyMac, MacCleanse, etc. now would be a good time to completely uninstall this apps by doing a Google search to learn how to properly uninstall these types of apps.
    These types of apps will only cause your Mac issues later after the install of the new OS X version and you will have to completely uninstall these types of apps later.
    Once you have determined all of this, you should be able to find the latest versions of OS X by clicking on the Mac App Store icon in the OS X Dock and then login to the Mac App Store using your Apple ID and password and if you purchased a download code, input that code.
    You can then begin the download and installation process of installing the newer versions of OS X from the Mac App Store.

  • If i want to learn unix-HP for SAP at first stage, please help me.

    Dear Friend,
    If i want to learn unix-HP for SAP at first stage, please help me.
    Thanks,
    Regards,
    sachin

    Hi Sachin,
                  please go thru the following url
    http://www.uga.edu/~ucns/wsg/unix/gstart/
    and
    http://whitepapers.techrepublic.com.com/whitepaper.aspx?&docid=10197&promo=100511
    happy learning!
    with BR,
    Raj
    <i> award points, plz </i>

  • If i want to learn unix-HP for SAP , please help me.

    Dear Friend,
    If i want to learn unix-HP for SAP at first stage, please help me.
    Thanks,
    Regards,
    BASIS TEAM

    Hi Sachin,
                  please go thru the following url
    http://www.uga.edu/~ucns/wsg/unix/gstart/
    and
    http://whitepapers.techrepublic.com.com/whitepaper.aspx?&docid=10197&promo=100511
    happy learning!
    with BR,
    Raj
    <i> award points, plz </i>

  • Learning Unix on the Mac

    What is a good book to own for someone that knows a little Unix (just a little) and used to be pretty good at DOS back in the day. I want to teach myself Unix and learn all the commands, what book do you recommend? Are either of these books worth owning?
    Mac OS X UNIX Toolbox 1000+ Command | Christopher Negus
    The Mac OS X Command Line: Unix Under the Hood | Kirk McElhearn

    Kirk McElhearn seems to be more of a true Mac-person than the other author. The 1000+ books looks just like the Linux version of the same name. Another option is MacOS X for Unix Geeks.

  • Learning Unix

    I am a dba wannabe.
    I have just got my OCP for 11g and am currently looking for work.
    Can somebody please suggest good software/books that I can learn Unix...
    Also, what tools (preferably free) should I have in my toolkit that will be useful for a dba......

    user531774 wrote:
    I am a dba wannabe.
    I have just got my OCP for 11g and am currently looking for work.
    Can somebody please suggest good software/books that I can learn Unix...
    Also, what tools (preferably free) should I have in my toolkit that will be useful for a dba......huh? you got OCP? how did you get it without knowing what tools a DBA needs? I could take a guess.
    download the oracle vm, play away with it.
    http://www.oracle.com/technetwork/server-storage/vm/enterprise-linux-090498.html

  • New to Mac and AppleScript

    Hello all - I am new to both Mac's and AppleScript, so yes - I need help! I want to be able to delete objects from an attached USB drive, without having to empty the "trash". I can open a terminal window, type "rm -r " and then drag the objects from Finder to the open terminal window and they are truly deleted from the attached usb drive. I am hoping that this could be setup within a script that would then "appear" as an icon on the desktop - so one could simply drag objects from Finder to this new icon, rather than the trash, and be able to delete absent dumping the entire trash can. Thanks in advance - Bob

    This is pretty straightforward.
    on open dropped_items
      repeat with each_item in dropped_items
        set filePath to POSIX path of each_item
        do shell script "rm -r " & quoted form of filePath
      end repeat
    end open
    Save it as an AppleScript Application and you're done - it takes a list of the items dropped onto it (referenced as dropped_item and iterates through the list. For each item in the list (each_item) it calculates the UNIX path (shell commands require UNIX paths, not regular file references), and passes that to a shell script that performs the rm

  • How do I get more memory on my IMAC .I have 1 GIG and to run LION you need 2 GIGS?

    How do I get more memory on my IMAC .I have 1 GIG and to run LION you need 2 GIGS?

    Depends on the Mac; what model and processor is it?
     > 'about this Mac' > 'more info'
    In the first section (hardware overview) post this info;
    Nothing below that is reqd, especially not the serial number.

  • Hi I have a question about shooting in Raw with my Canon EOS 6d. I'm in the process of learning photography and my goal was to start shooting in raw. I have Photoshop CS5. When I tried to edit my images in raw I received an error message stating, "The pho

    Hi I have a question about shooting in Raw with my Canon EOS 6d.
    I'm in the process of learning photography and my goal was to start shooting in raw.
    I have Photoshop CS5. When I tried to edit my images in raw I received an error message stating, "The photoshop camera raw plug-in did not recognize the format. If these files are from a camera, you may need to update your camera raw plug in."
    In researching the issue I read that to edit in raw you need a camera model requirement of at least 7.3 which only works with CS6. My version of CS5 is 6.0.0.205. Being new to all this I see that my options are to upgrade to CS6 or convert by using DNG converter and paying a monthly fee. Two things I know nothing about and don't know which is would be more beneficial.
    I'd appreciate any advise on which route to go and how upgrade and what it may cost. THANKS in advance!
    Heather

    In researching the issue I read that to edit in raw you need a camera model requirement of at least 7.3 which only works with CS6.
    That is correct. Your camera was first supported by Camera Raw 7.3. Camera Raw 7.3 will not work with CS5. You need CS6 or CC.
    Being new to all this I see that my options are to upgrade to CS6 or convert by using DNG converter and paying a monthly fee. Two things I know nothing about and don't know which is would be more beneficial.
    I'd appreciate any advise on which route to go and how upgrade and what it may cost.
    It all depends on your preferred workflow and your budget.
    Using the DNG converter is free. There is no monthly fee. You use the converter to convert all Raw files from the EOS 6D to DNGs then edit the DNGs in CS5. That's an extra step every time - every photo. Some people don't like the extra step. Others don't mind.
    Camera raw, DNG | Adobe Photoshop CC
    Or you can upgrade to CS6 (non-Cloud) and pay the upgrade fee
    Creative Suite 6
    Or join the Cloud and pay the monthly fee
    Or join the Photoshop Photography Program (US9.99/month) and get PS CC+LR

  • Assigning learners to Learner Group and creation of Learner Group.

    Hi All,
    Are there any standard ways to create Learner Groups from R12.1.3. I have tried looking for Oracle standard APIs but did not find them. Is there any other way we can create Learner group from back end. I know to create them from Application but we have to create bulk number of Learner Groups. So wanted to do them from back end.
    Also we may need to assign large number of learners to learner group. Can you please explain the possible ways of doing these assignments.
    Any inputs are the most awaited.
    Thanks,
    Abhishek.

    Thanks Anders for your input. Please look into my below query also.
    We are in 12.1.3. I tested creating a learner group and adding learners to it (both by organization and learner assignment).
    When I try to assign a course to a Learner Group from the Application, I go to course and from "Bulk Enroll" window, I input the Learner Group to which I wanted to add the course and click on 'GO'. Now Application lists out the learners in the Learner Group. Learners in the Learner Group are not enrolled into courses unless I click the check box beside each learner and select 'Add'.
    Is this the standard way of enrolling a Learner Group to the course. I am just looking for a way where I can enroll all the learners in Learner Group to a course by selecting that particular Learner Group (rather than clicking the check box beside every learner).
    If I have to check against every learner to enroll them in a course, then I dont really get the point in creating Learner Groups. Please advice.
    Thanks,
    Abhishek

  • I sent my 17inch mac pro to apple to install a new hard drive and my mountain lion was not on it when i got it back, using the same apple id i tried to re download it but it says i have to pay

    i sent my 17inch mac pro to apple to install a new hard drive and my mountain lion was not on it when i got it back, using the same apple id i tried to re download it but it says i have to pay

    never mind i got it by going into my account and veiwing hidden items and there it was

  • ICloud with Numbers and Pages on Lion

    I have two computers: an old one with the latest Lion and a new one with the latest Mountain Lion.   I have Numbers09 and Pages09 on both computers, bought long ago on disk. Exactly the same copy, copied from old to new computer.   I don't remember when I got the last update, it was also long ago.  Point is since they did not come from the app store, they did get not automatic updates to keep up with the cloud.  Apple orphaned them long ago.
    Now, both Pages and Numbers on the new computer can access iCloud, save docs to the cloud and move docs in and out (although if the new iWorks - iCloud or iOS version touches them, I can no longer open the docs, but that's something else).
    On the other hand, Pages and Numbers on Lion cannot access iCloud. There is no iCloud tab like on Pages/Numbers on ML.  Cloud is on, and Docs and Data checked.  It also warns me the local version of cloud docs will be deleted when I uncheck the box.  Cloud on Lion works fine otherwise: bookmarks, contacts, calendar.
    My question is: Is this expected or not? If not, how to fix it.
    Thanks in advance

    Never mind, now I see quite  a few threads.  It seems Apple disabled ~/Libray/Mobile Documents on Lion...

  • I had iLife pre-installed on my aluminium Macbook 2009 with OSX Leopard on it. My hard drive broke but got most of the info off it and just installed snow Leopard on to a new drive and then downloaded and installed Mountain Lion over it. Now I don't have

    I had iLife pre-installed on my aluminium Macbook 2009 with OSX Leopard on it. My hard drive broke but got most of the info off it and just installed snow Leopard on to a new drive and then downloaded and installed Mountain Lion over it. Now I don't have iLife anymore. How do I get it back?

    Welcome to Apple Support Communities
    Mac OS X doesn't come with iLife applications, so you have to install them manually after installing Mac OS X.
    Insert the Applications disc or Mac OS X Install Disc 2 DVD and install iLfe applications. Then, open  > Software Update, and install the latest update. If you want, you can purchase iMovie, GarageBand and iPhoto in the App Store, so you will get the most recent version

  • Is it possible to install Lion on the second hard disk on my Mini (2010) Snow Leopard Server, and switch between Lion and Snow Leopard? I like those voices Lion has in speech.

    Is it possible to install Lion on the second hard disk on my Mini (2010) Snow Leopard Server, and switch between Lion and Snow Leopard? I like those voices Lion has in speech.

    When baltwosaid NO emphatically, that was described as CORRECT ANSWER. Ditto in the caeses of the radically different answers from  Camelotand Matt Clifton
    Could it be that CORRECT ANSWER needs better defining by Apple?
    That apart, yes, switching might involve rebooting. About the voices, well, I was the other day adding voice to a commentary in a video I was working on. There's only American English accent in SL — Lion I believe has British ones as well.
    Why not, I wondered, try to install Lion purely for academic interest, maybe with an SD card (Sandisk Ultra II, 16GB) as Tom Nelson says is possible at http://macs.about.com/od/macoperatingsystems/ss/Perform-A-Clean-Install-Of-Os-X- Lion-On-Your-Mac.htm

Maybe you are looking for

  • How do I stop firefox from pre-downloading a file during a file download prompt?

    I use DownThemAll as my download manager for files generally over 10MB, as my internet connection is generally too slow for firefox to download a file larger then this without firefox "finishing" a download before it's complete, corrupting the file.

  • Batch split items to feature in billing document

    Dear Friends, While creating replenishment delivery through VL10B against P.O., batch split is taking place. My requirement is , while creating the billing document the main item should not feature and only the batch items should show in the billing

  • [iPhone SDK] Faster scrolling in UIScrollView?

    Hi, I've got paging enabled on my UIScrollView and everything works fine. However, page swiping is not very 'snappy'. I essentially want to be able to flick the page quickly like the weather app even if the page was flicked slowly. On landscape, if y

  • J2sdk 1.4.1 Subject.doAs() odd (?) behaviour.

    I browsed through the forums and it seems like several other people have noticed the same, but nobody has explained it. See threads: http://forum.java.sun.com/thread.jsp?forum=61&thread=302862 http://forum.java.sun.com/thread.jsp?forum=61&thread=3190

  • Power Saver fatal error code 0x47f on Equium

    Hi I have a problem with power saver on my equium. When windos starts up a box appears saying 'fatal error toshiba power saver program will be terminated. error code 0x47f' i have tried using the tols and utilites cd to try and reinstall the power sa