101 Snippets

Discussion in 'AppleScript' started by Ric, Nov 11, 2005.

  1. Ric

    Spawn_Dooley Moderator

    Joined:
    Jun 13, 2007
    Messages:
    2,667
    Likes Received:
    72
    Location:
    van diemen's land
    You are pretty fly there, with the scripts W666! :)
     
    Spawn_Dooley, Jun 8, 2008
    #21
    1. Advertisements

  2. Ric

    Walrus666 Moderator

    Joined:
    Jul 21, 2007
    Messages:
    1,252
    Likes Received:
    14
    Location:
    Chicago
    Thanks Spawn. :)
     
    Walrus666, Jun 8, 2008
    #22
    1. Advertisements

  3. Ric

    Walrus666 Moderator

    Joined:
    Jul 21, 2007
    Messages:
    1,252
    Likes Received:
    14
    Location:
    Chicago
    If you're like my good friend, Spawn Dooley and have the desire to play an occasional sound track backwards (number nine, number nine) then you might find this script useful.
    HOW IT WORKS:
    1. Open iTunes.
    2. Play the sound track (You don't have to play it all the way).
    3. Pause the sound track.
    4. Move the iTunes Player's play head to the desired location (Usually at the end of the sound track).
    5. Open the script.
    6. Run the script.

    If you want to replay the sound track backwards, click the "Run" button on the Script Editor not the play button on the QuickTime Player. :)
     

    Attached Files:

    Walrus666, Jun 10, 2008
    #23
  4. Ric

    Spawn_Dooley Moderator

    Joined:
    Jun 13, 2007
    Messages:
    2,667
    Likes Received:
    72
    Location:
    van diemen's land
    I had some issues as a result of running the VisibilityBitToggler.script, I couldn't drag anything to my Desktop as "The Desktop Cannot Be Modified" alerts appeared when I tried to drag a photo from my iPhoto Library window onto the Desktop. Then I discovered that some Desktop folders had vanished. I was able to return one of the folders but there may have been another one or two, I can't recall. Also, the invisible folder that I created using "MyInvisibleFolder.script is definitely gone for good, AFAICS .... The Desktop is back to its old self too, thank goodness.

    I put it down to User Error ;)

    That backwards script is amazing, W666! How do you do these things so easily?




    Albino Blacksheep » Flash Videos » Backmask
     
    Spawn_Dooley, Jun 10, 2008
    #24
  5. Ric

    Walrus666 Moderator

    Joined:
    Jul 21, 2007
    Messages:
    1,252
    Likes Received:
    14
    Location:
    Chicago
    Actually, in addition to some of my scripts I added scripts that were downloaded from the web. Some of them I modified, some left as they were. The best way to learn how to make an Applescript would be to run these scripts and see what they do and eventually combine the bits of code from each one to another, perhaps adding some of your own bits in the process. I must have tried the invisible folder script around twenty times on Tiger & Leopard without any problems. Just in case, it's in the archives. ZAP! :D
     
    Walrus666, Jun 10, 2008
    #25
  6. Ric

    Walrus666 Moderator

    Joined:
    Jul 21, 2007
    Messages:
    1,252
    Likes Received:
    14
    Location:
    Chicago
    Here's an example of some modified scripts. The first script does a Google search of whatever is pasted on your clipboard, which I downloaded from the web and thought it was pretty good with a couple of exceptions. What if there's nothing on the clipboard or what if you don't want to do a search for whatever is pasted on the clipboard? So, I modified it by adding code that would enable the user to specify the search that he/she would like to perform and as a result came up with the second script. Being pleased with the second script, I modified it to perform a Google search for "images" and as a result came up with the third script. This is my favorite method to use learning AppleScript and there's still a long way to go. :D
     

    Attached Files:

    Walrus666, Jun 15, 2008
    #26
  7. Ric

    Walrus666 Moderator

    Joined:
    Jul 21, 2007
    Messages:
    1,252
    Likes Received:
    14
    Location:
    Chicago
    Here's a couple more AppleScripts. The first script will lock all of the files in a chosen folder and the second script will unlock all of the files in a chosen folder. Hence, the names, FileLocker & FileUnlocker. :D
     

    Attached Files:

    Walrus666, Sep 3, 2008
    #27
  8. Ric

    St0mp New Member

    Joined:
    Nov 27, 2010
    Messages:
    2
    Likes Received:
    0
    Location:
    CT
    It worked! I had a very stubborn (the item is still in use .pdf) but this sent it on it's way. Thanks.
     
    St0mp, Nov 27, 2010
    #28
  9. Ric

    Walrus666 Moderator

    Joined:
    Jul 21, 2007
    Messages:
    1,252
    Likes Received:
    14
    Location:
    Chicago
    You're welcome. :)
     
    Walrus666, Dec 27, 2010
    #29
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Newsbot

    Mac 101: Exposé

    Newsbot, Dec 21, 2006, in forum: Apple News
    Replies:
    0
    Views:
    575
    Newsbot
    Dec 21, 2006
  2. Newsbot

    Mac 101: Connect to the Internet

    Newsbot, Dec 21, 2006, in forum: Apple News
    Replies:
    0
    Views:
    611
    Newsbot
    Dec 21, 2006
  3. Newsbot

    Mac 101: Connect Your Printer

    Newsbot, Dec 21, 2006, in forum: Apple News
    Replies:
    0
    Views:
    663
    Newsbot
    Dec 21, 2006
  4. Newsbot

    Mac 101: Change Your Icons

    Newsbot, Dec 21, 2006, in forum: Apple News
    Replies:
    0
    Views:
    548
    Newsbot
    Dec 21, 2006
  5. Wikicodia Admin

    Wikicodia - The code snippets wiki

    Wikicodia Admin, Jul 27, 2007, in forum: Apps
    Replies:
    1
    Views:
    282
    Heath Raftery
    Aug 2, 2007
  6. Wikicodia Admin

    Wikicodia - The code snippets wiki

    Wikicodia Admin, Jul 27, 2007, in forum: Mac
    Replies:
    2
    Views:
    316
    Kurt Ullman
    Jul 27, 2007
  7. Jo_y

    Snippets Contents

    Jo_y, Nov 20, 2008, in forum: AppleScript
    Replies:
    0
    Views:
    303
  8. ph03nix2s
    Replies:
    3
    Views:
    357
    Spawn_Dooley
    May 14, 2013
Loading...