+ Post New Thread
Results 1 to 6 of 6
Mac Thread, os x scripting in Technical; Not sure if there are any good websites but saw one or two threads relating to scripting on os x ...
  1. #1

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,924
    Thank Post
    3,456
    Thanked 1,089 Times in 1,004 Posts
    Rep Power
    371

    os x scripting

    Not sure if there are any good websites but saw one or two threads relating to scripting on os x and was just wondering if anyone knew of any good tutorial type sites for scripting in os x ?

  2. #2

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,192
    Thank Post
    300
    Thanked 215 Times in 185 Posts
    Rep Power
    57
    what sort? Apple scripting or unix shell scripting?

    I am looking into this as well. If you find any information, let me know. There is a link to applescript on the apple site, although there isn't much info there. If you know the syntax or how to build an applescript there is a dictionary available. This allows you to see just what type of options are available. For example if you open the dictionary and then choose Finder from the list, you can then see what options there are available, such as copy duplicate contents etc. There is also the record option which i was looking at yesterday which seemed to work quite well. It allows you to record what you do and then enters the appropriate code into the applescript window building it up bit by bit. A good way to see just how it works.

    Unix scripts. There is a section for shell scripting for beginners on the developers site. I have it in PDF format. I have attached it here for you to download.

    Remember both applescript and shell scripts can be leveraged using Automator which also has the advantage of variables as well now.
    Attached Files Attached Files

  3. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,924
    Thank Post
    3,456
    Thanked 1,089 Times in 1,004 Posts
    Rep Power
    371

    either or

    all of the above really - I got quite into vbscripting when I was using windows and would be nice to get a taste of what both of the above are like. I did do some very simplistic apple scripts but wanted a bit more then just that.

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    This is quite good unix shell intro that was written for osx in mind:
    http://nemorathwald.com/wp-content/u...inningmage.pdf
    The concepts are equally applicable to linux/bsd

    I'd be inclined to learn a cross platform scripting language so that you don't limit yourself to a particular system. Python, perl, Ruby have plenty of sites dedicated to them - The advantage of true cross platform is that you shouldn't need to re-wite your scripts for windows.

  5. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,924
    Thank Post
    3,456
    Thanked 1,089 Times in 1,004 Posts
    Rep Power
    371

    cross platform

    That is true about the cross platform scripting - however out of the ones you mentioned and possibly some other ones you may not of mentioned ( which one would be the better one to learn with a reasonable learning curve and will be of most use ) ?

  6. #6


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Quote Originally Posted by gecko View Post
    That is true about the cross platform scripting - however out of the ones you mentioned and possibly some other ones you may not of mentioned ( which one would be the better one to learn with a reasonable learning curve and will be of most use ) ?
    IMHO python is well suited as a scripting language for *nix, and it's a lot easier to learn than perl - but (as always) there are things that you'll be able to achieve easier using bash shell scripts (or vbs!).
    So probably, learn some shell commands/scripts - then use python for the more complicated things.
    Last edited by CyberNerd; 22nd August 2008 at 10:32 AM.



SHARE:
+ Post New Thread

Similar Threads

  1. Scripting Resources
    By ChrisH in forum Scripts
    Replies: 20
    Last Post: 27th March 2012, 12:39 PM
  2. Scripting and msi's
    By stu in forum How do you do....it?
    Replies: 5
    Last Post: 26th June 2008, 07:47 PM
  3. Printer Scripting
    By dave.81 in forum How do you do....it?
    Replies: 2
    Last Post: 23rd April 2008, 01:50 PM
  4. New to scripting
    By FN-GM in forum Scripts
    Replies: 26
    Last Post: 10th August 2007, 11:31 PM
  5. Scripting IP configuration.
    By Dos_Box in forum Scripts
    Replies: 3
    Last Post: 2nd September 2005, 10:07 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •