<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>Apple Scripts</title>
    <description>Repository of Useful Scripts Contributed by Users.</description>
    <pubDate>Thu, 13 Nov 2014 21:14:50 +0000</pubDate>
    <lastBuildDate>Thu, 13 Nov 2014 21:14:50 +0000</lastBuildDate>
    <generator>macosx.com</generator>
    <link>http://macosx.com/forums/apple-scripts.220/</link>
    <atom:link rel="self" type="application/rss+xml" href="http://macosx.com/forums/apple-scripts.220/index.rss"/>
    <item>
      <title>Open file</title>
      <pubDate>Sun, 11 Aug 2013 13:16:55 +0000</pubDate>
      <link>http://macosx.com/threads/open-file.322346/</link>
      <guid>http://macosx.com/threads/open-file.322346/</guid>
      <author>invalid@example.com (nealt)</author>
      <dc:creator>nealt</dc:creator>
      <content:encoded><![CDATA[I have used the following line of script successfully:<br />
open document file &quot;NEAL&#039;S LIBRARY.FP7&quot; of folder &quot;FILEMAKER 8 FILES&quot; of folder &quot;Documents&quot; of folder &quot;nealnt&quot; of folder &quot;users&quot; of startup disk.<br />
*<br />
I recently moved files around as the file is no longer on the startup disk but on a HD labeled Macintosh hd. I tried changing startup disk to Macintosh hd but this did not work. Error was: Expected end of line, etc. but found identifier.<br />
 Changed to disk macintosh hd . Got error message:...<br />
<br />
<a href="http://macosx.com/threads/open-file.322346/" class="internalLink">Open file</a>]]></content:encoded>
    </item>
    <item>
      <title>Script for opening Twitter Link</title>
      <pubDate>Wed, 20 Feb 2013 19:40:44 +0000</pubDate>
      <link>http://macosx.com/threads/script-for-opening-twitter-link.322038/</link>
      <guid>http://macosx.com/threads/script-for-opening-twitter-link.322038/</guid>
      <author>invalid@example.com (basedgato)</author>
      <dc:creator>basedgato</dc:creator>
      <content:encoded><![CDATA[Hi <br />
I was wondering is there a way I could use either Automator or the Script editor to create an script that would automatically open a link in a tweet immediately after the tweet?  Thanks in advance]]></content:encoded>
    </item>
    <item>
      <title>CSVs in a  comma-free land and other woes</title>
      <pubDate>Sat, 05 Jan 2013 20:46:05 +0000</pubDate>
      <link>http://macosx.com/threads/csvs-in-a-comma-free-land-and-other-woes.321934/</link>
      <guid>http://macosx.com/threads/csvs-in-a-comma-free-land-and-other-woes.321934/</guid>
      <author>invalid@example.com (ChrisM666)</author>
      <dc:creator>ChrisM666</dc:creator>
      <content:encoded><![CDATA[I am currently using files with extension .cdb - which are just .csvs with the usual(?) commas and some added vendor-specific rows.  I want to open them in Excel (2008) as though they are .csvs.  Ideally, they would open via &#039;File&gt;Open&#039; - or at least on being selected in Finder - with each item falling into the correct column, there to await my formatting macro.  <br />
<br />
This doesn&#039;t happen because:<br />
<ul>
<li>&#039;Finder&gt;Open (With)&#039; does not invoke the formatting Wizard for unknown file extensions...</li>
</ul><br />
<a href="http://macosx.com/threads/csvs-in-a-comma-free-land-and-other-woes.321934/" class="internalLink">CSVs in a  comma-free land and other woes</a>]]></content:encoded>
    </item>
    <item>
      <title>Applescript droplet works fine on one machine, does nothing on another.</title>
      <pubDate>Fri, 14 Dec 2012 23:10:13 +0000</pubDate>
      <link>http://macosx.com/threads/applescript-droplet-works-fine-on-one-machine-does-nothing-on-another.321887/</link>
      <guid>http://macosx.com/threads/applescript-droplet-works-fine-on-one-machine-does-nothing-on-another.321887/</guid>
      <author>invalid@example.com (hbquikcomjamesl)</author>
      <dc:creator>hbquikcomjamesl</dc:creator>
      <content:encoded><![CDATA[This droplet (with a &quot;display dialog&quot; added for debugging purposes) works just fine on my new Mac Mini, but does nothing on my colleague&#039;s MacBook Pro, other than maybe make the dock quiver slightly (it doesn&#039;t even show the dialog!):<br />
<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Code:</div>
	<pre>on open foo
	repeat with bar in foo
		set {tid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, &quot;:&quot;}
		set baz to text items of (bar as string)
		set AppleScript's text item delimiters to &quot;/&quot;
		set qux to baz as text...</pre>
</div><a href="http://macosx.com/threads/applescript-droplet-works-fine-on-one-machine-does-nothing-on-another.321887/" class="internalLink">Applescript droplet works fine on one machine, does nothing on another.</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Voice Recognition</title>
      <pubDate>Sun, 23 Sep 2012 22:00:38 +0000</pubDate>
      <link>http://macosx.com/threads/voice-recognition.321710/</link>
      <guid>http://macosx.com/threads/voice-recognition.321710/</guid>
      <author>invalid@example.com (Oledanethey)</author>
      <dc:creator>Oledanethey</dc:creator>
      <content:encoded><![CDATA[I am helping a friend with physical disability I need a script that will lauch voice recognition and be able to response perform basic conversation. Thank you.]]></content:encoded>
    </item>
    <item>
      <title>MacOSX Give alias/symlink label color but not original file</title>
      <pubDate>Tue, 21 Aug 2012 08:01:58 +0000</pubDate>
      <link>http://macosx.com/threads/macosx-give-alias-symlink-label-color-but-not-original-file.321547/</link>
      <guid>http://macosx.com/threads/macosx-give-alias-symlink-label-color-but-not-original-file.321547/</guid>
      <author>invalid@example.com (g4mm4)</author>
      <dc:creator>g4mm4</dc:creator>
      <content:encoded><![CDATA[Hoi dear members,<br />
<br />
i have a short question. Is it possible to set the label of an alias/symlink to a certain color without effecting other symlinks and the original file?<br />
<br />
Lets say if have one main folder and different subgroups. Each subgroups contains symlinks to the files in the main folder. I want know to color these symlinks according to some variables which is easily done with<br />
<br />
osascript -e &quot;tell application \&quot;Finder\&quot; to set label index of alias POSIX file \&quot;$1\&quot; to \&quot;$2\&quot;&quot;<br />
Unfortunately...<br />
<br />
<a href="http://macosx.com/threads/macosx-give-alias-symlink-label-color-but-not-original-file.321547/" class="internalLink">MacOSX Give alias/symlink label color but not original file</a>]]></content:encoded>
    </item>
    <item>
      <title>Keeping an AppleScript that launches a Java app from waiting for it to complete?</title>
      <pubDate>Sat, 11 Aug 2012 00:17:04 +0000</pubDate>
      <link>http://macosx.com/threads/keeping-an-applescript-that-launches-a-java-app-from-waiting-for-it-to-complete.321480/</link>
      <guid>http://macosx.com/threads/keeping-an-applescript-that-launches-a-java-app-from-waiting-for-it-to-complete.321480/</guid>
      <author>invalid@example.com (hbquikcomjamesl)</author>
      <dc:creator>hbquikcomjamesl</dc:creator>
      <content:encoded><![CDATA[In an end-run around a problem described in another thread, . . .<br />
<br />
I have an AppleScript droplet that launches a Java application (which expects a fully-qualified pathname as its parameter) with a &quot;do shell script&quot;:<br />
<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Code:</div>
	<pre>on open foo
    repeat with bar in foo
        &lt;code that massages pathnames from a:b:c:d to a/b/c/d format&gt;
        do shell script &quot;java -jar myjar \&quot;Volumes/&quot; &amp; bar &amp; &quot;\&quot;&quot;
</pre>
</div>The problem with it is that it waits for the java application to complete. That is...<br />
<br />
<a href="http://macosx.com/threads/keeping-an-applescript-that-launches-a-java-app-from-waiting-for-it-to-complete.321480/" class="internalLink">Keeping an AppleScript that launches a Java app from waiting for it to complete?</a>]]></content:encoded>
    </item>
    <item>
      <title>Apple Script to Zoom Active Excel Sheets</title>
      <pubDate>Mon, 06 Aug 2012 16:01:59 +0000</pubDate>
      <link>http://macosx.com/threads/apple-script-to-zoom-active-excel-sheets.321320/</link>
      <guid>http://macosx.com/threads/apple-script-to-zoom-active-excel-sheets.321320/</guid>
      <author>invalid@example.com (sfshah)</author>
      <dc:creator>sfshah</dc:creator>
      <content:encoded><![CDATA[I need an apple script to zoom the active Excel Sheets to zoom to 150. While working in excel, one need to browse to different sheets in a workbook. The zoom level should be 150 whenever I swith to a worksheet. Is such a script possible?]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Dialing phone with ABDialer</title>
      <pubDate>Thu, 12 Jul 2012 17:51:23 +0000</pubDate>
      <link>http://macosx.com/threads/dialing-phone-with-abdialer.321362/</link>
      <guid>http://macosx.com/threads/dialing-phone-with-abdialer.321362/</guid>
      <author>invalid@example.com (Rich B)</author>
      <dc:creator>Rich B</dc:creator>
      <content:encoded><![CDATA[I need help creating a script to dial a phone number listed in a FileMaker Pro field through a usb modem.  Even though I&#039;ve been a mac user for many years I&#039;m totally inept at script writing.<br />
<br />
I&#039;m running OS 10.6.8, FileMaker 12.0.1<br />
<br />
Any help would be greatly appreciated<br />
<br />
Thanks,<br />
<br />
Rich]]></content:encoded>
    </item>
    <item>
      <title>automator or apple script for ical import export?</title>
      <pubDate>Tue, 19 Jun 2012 23:47:56 +0000</pubDate>
      <link>http://macosx.com/threads/automator-or-apple-script-for-ical-import-export.321270/</link>
      <guid>http://macosx.com/threads/automator-or-apple-script-for-ical-import-export.321270/</guid>
      <author>invalid@example.com (mtnbkr29er)</author>
      <dc:creator>mtnbkr29er</dc:creator>
      <content:encoded><![CDATA[I have a problem and was wondering if automator, apple script or something else might provide a solution.<br />
<br />
Problem:<br />
I have a work calendar (exchange) that can be synced to my work computer, but not to any other computer.  I also have a google calendar synced to my work computer.  This google calendar can be synced to my home mac mini, ipod, ipad, etc. ... but NOT to my exhange work calendar.  I would like to fake a sync from exchange calendar to my google calendar though my work macpro.  Is...<br />
<br />
<a href="http://macosx.com/threads/automator-or-apple-script-for-ical-import-export.321270/" class="internalLink">automator or apple script for ical import export?</a>]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>Applescript and Mainstage</title>
      <pubDate>Thu, 24 May 2012 20:29:07 +0000</pubDate>
      <link>http://macosx.com/threads/applescript-and-mainstage.321154/</link>
      <guid>http://macosx.com/threads/applescript-and-mainstage.321154/</guid>
      <author>invalid@example.com (ryanh92)</author>
      <dc:creator>ryanh92</dc:creator>
      <content:encoded><![CDATA[kinda new to applescript so please bear with me. In mainstage, there are scripts to control iTunes such as play/pause song etc. so, in short, you can start a song from iTunes by pressing a button on your midi controller. i want to start a midi file the same way you can start a song from iTunes. However, since iTunes is incapable of playing midi files, i would need to script it to play from quicktime. I&#039;ve had no such luck from google in trying to find a solution or anything even quicktime...<br />
<br />
<a href="http://macosx.com/threads/applescript-and-mainstage.321154/" class="internalLink">Applescript and Mainstage</a>]]></content:encoded>
      <slash:comments>5</slash:comments>
    </item>
    <item>
      <title>How to get the filename after a save command</title>
      <pubDate>Thu, 10 May 2012 01:37:49 +0000</pubDate>
      <link>http://macosx.com/threads/how-to-get-the-filename-after-a-save-command.321123/</link>
      <guid>http://macosx.com/threads/how-to-get-the-filename-after-a-save-command.321123/</guid>
      <author>invalid@example.com (Sleiman)</author>
      <dc:creator>Sleiman</dc:creator>
      <content:encoded><![CDATA[Greetings readers,<br />
<br />
I used the following Applescript command to save an email message (in Outlook) as a file in a special folder:<br />
<br />
    save objInSelection in myAttachmentsFolder<br />
<br />
However, I don&#039;t know how to get the filename under which the message was saved. Any idea how?<br />
<br />
Normally, the filename is the message subject after translating some characters (such as : to - ) and adding a suffix such as [1] if the original filename already exists. So for example, the first time a message...<br />
<br />
<a href="http://macosx.com/threads/how-to-get-the-filename-after-a-save-command.321123/" class="internalLink">How to get the filename after a save command</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Work around Outlook4Mac bug -- AppleScript to open file when its name is highlighted</title>
      <pubDate>Sun, 29 Apr 2012 08:01:43 +0000</pubDate>
      <link>http://macosx.com/threads/work-around-outlook4mac-bug-applescript-to-open-file-when-its-name-is-highlighted.321073/</link>
      <guid>http://macosx.com/threads/work-around-outlook4mac-bug-applescript-to-open-file-when-its-name-is-highlighted.321073/</guid>
      <author>invalid@example.com (Sleiman)</author>
      <dc:creator>Sleiman</dc:creator>
      <content:encoded><![CDATA[Greetings readers,<br />
<br />
Microsoft released a few days ago the long-awaited (by me) Service Pack 2 for Office for Mac 2011 but unfortunately SP2 doesn&#039;t fix some critical (for me) limitation of the software: unlike the Windows version one cannot attach files to appointments, tasks or contact records. This is a critical limitation that inhibited me from using Outlook on Mac as I have a lot of documents attached to records of the mentioned types.  <br />
<br />
But I am determined to do the switch from PC to...<br />
<br />
<a href="http://macosx.com/threads/work-around-outlook4mac-bug-applescript-to-open-file-when-its-name-is-highlighted.321073/" class="internalLink">Work around Outlook4Mac bug -- AppleScript to open file when its name is highlighted</a>]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>[APPLESCRIPT] Change QuickTime movie aspect ratio</title>
      <pubDate>Sat, 21 Apr 2012 05:54:46 +0000</pubDate>
      <link>http://macosx.com/threads/applescript-change-quicktime-movie-aspect-ratio.298282/</link>
      <guid>http://macosx.com/threads/applescript-change-quicktime-movie-aspect-ratio.298282/</guid>
      <author>invalid@example.com (Mikuro)</author>
      <dc:creator>Mikuro</dc:creator>
      <content:encoded><![CDATA[This is a script I&#039;ve made to easily change the aspect ratio of a movie in QuickTime Player. It presents the user with a dialog box with common ratios, like 4:3 and 16:9, with an option for the user to enter any arbitrary ratio.<br />
<br />
I find this very useful for video podcasts from iTunes and movies downloaded from sites like YouTube. For some reason they often have the wrong aspect ratio, resulting in stretched (or smooshed) video. This script lets me fix it easily.<br />
<br />
The zip includes both .scpt and...<br />
<br />
<a href="http://macosx.com/threads/applescript-change-quicktime-movie-aspect-ratio.298282/" class="internalLink">[APPLESCRIPT] Change QuickTime movie aspect ratio</a>]]></content:encoded>
      <slash:comments>28</slash:comments>
    </item>
    <item>
      <title>Auto-mount script</title>
      <pubDate>Fri, 09 Mar 2012 14:02:34 +0000</pubDate>
      <link>http://macosx.com/threads/auto-mount-script.320851/</link>
      <guid>http://macosx.com/threads/auto-mount-script.320851/</guid>
      <author>invalid@example.com (shawntbrothers)</author>
      <dc:creator>shawntbrothers</dc:creator>
      <content:encoded><![CDATA[Hey everyone,<br />
<br />
I&#039;ve run in to a problem recently with auto-mounting and I&#039;m hoping someone in this forum has an answer. <br />
<br />
I have a Synology DiskStation NAS that I use to store my iTunes library, video, pictures and other misc files. My wife and I share a single iTunes library between two computers and this is why I have it on the NAS (also, my MacBook Air doesn&#039;t have the 500+gb drive needed to store it). The drive is mapped on my wife&#039;s Windows machine and I&#039;ve got the script down to auto...<br />
<br />
<a href="http://macosx.com/threads/auto-mount-script.320851/" class="internalLink">Auto-mount script</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>calling a method in shared library using Apple Script</title>
      <pubDate>Wed, 08 Feb 2012 09:25:02 +0000</pubDate>
      <link>http://macosx.com/threads/calling-a-method-in-shared-library-using-apple-script.320646/</link>
      <guid>http://macosx.com/threads/calling-a-method-in-shared-library-using-apple-script.320646/</guid>
      <author>invalid@example.com (Nischala)</author>
      <dc:creator>Nischala</dc:creator>
      <content:encoded><![CDATA[Hi,<br />
<br />
Let me know how to write a simple method in Objective-C, put it in a shared library and then call this method by using Apple Script...]]></content:encoded>
    </item>
    <item>
      <title>Pesky AppleScript Problem!</title>
      <pubDate>Wed, 11 Jan 2012 01:44:24 +0000</pubDate>
      <link>http://macosx.com/threads/pesky-applescript-problem.320477/</link>
      <guid>http://macosx.com/threads/pesky-applescript-problem.320477/</guid>
      <author>invalid@example.com (subgeniuszero)</author>
      <dc:creator>subgeniuszero</dc:creator>
      <content:encoded><![CDATA[Hey folks, I&#039;m working on a large AppleScript that splits Pages documents based upon their paragraph style, but this particular handler is giving me trouble.  It keeps saying, &quot;Apple Event Handler Failed.  Error -10000&quot; whenever it gets to the &quot;move&quot; command (at least that&#039;s what the AppleScript Editor highlights.)  What am I doing wrong?<br />
<br />
<br />
(* Get the file to operate on and the location to save the files *)<br />
<br />
set theFile to choose file of type &quot;pages&quot; with prompt &quot;Please choose a file to operate...<br />
<br />
<a href="http://macosx.com/threads/pesky-applescript-problem.320477/" class="internalLink">Pesky AppleScript Problem!</a>]]></content:encoded>
    </item>
    <item>
      <title>Mapping AFP with Applescript for student macs</title>
      <pubDate>Fri, 04 Nov 2011 06:31:30 +0000</pubDate>
      <link>http://macosx.com/threads/mapping-afp-with-applescript-for-student-macs.319903/</link>
      <guid>http://macosx.com/threads/mapping-afp-with-applescript-for-student-macs.319903/</guid>
      <author>invalid@example.com (DrunkMunki)</author>
      <dc:creator>DrunkMunki</dc:creator>
      <content:encoded><![CDATA[i have spent the past 2 weeks searching google and have also searched these forums and have found standard responses using Automator and drag drive into login items...<br />
<br />
But i need to do this for 100+ macs with over 500 Users who will be logging in using a Microsoft ADS bound to a Mac Snow Leopard Server in the city.local forest.<br />
<br />
We will be rolling out a single mac student image and need help to create a login script on login that will:<br />
<br />
1) mount network drive &quot;cty-mac-stu/Users&quot; using...<br />
<br />
<a href="http://macosx.com/threads/mapping-afp-with-applescript-for-student-macs.319903/" class="internalLink">Mapping AFP with Applescript for student macs</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>I cannot work out how to set the Page Setup for an existing file to a specific paper</title>
      <pubDate>Mon, 25 Jul 2011 09:07:08 +0000</pubDate>
      <link>http://macosx.com/threads/i-cannot-work-out-how-to-set-the-page-setup-for-an-existing-file-to-a-specific-paper.319031/</link>
      <guid>http://macosx.com/threads/i-cannot-work-out-how-to-set-the-page-setup-for-an-existing-file-to-a-specific-paper.319031/</guid>
      <author>invalid@example.com (RKC007)</author>
      <dc:creator>RKC007</dc:creator>
      <content:encoded><![CDATA[The following script is not working on my system:<br />
<br />
<br />
property Finale : &quot;Finale 2009&quot; -- Change to your Finale-version<br />
<br />
tell application &quot;Finder&quot;<br />
set theFolder to choose folder<br />
set theFiles to every file of theFolder<br />
end tell<br />
<br />
repeat with thisFile in theFiles<br />
tell application Finale to activate<br />
open thisFile<br />
tell application &quot;System Events&quot;<br />
tell process Finale<br />
click menu item &quot;Page Setup&quot; of menu &quot;File&quot; of menu bar item &quot;File&quot; of menu bar 1<br />
delay 0.2<br />
tell window 1<br />
click pop up...<br />
<br />
<a href="http://macosx.com/threads/i-cannot-work-out-how-to-set-the-page-setup-for-an-existing-file-to-a-specific-paper.319031/" class="internalLink">I cannot work out how to set the Page Setup for an existing file to a specific paper</a>]]></content:encoded>
    </item>
    <item>
      <title>[APPLESCRIPT] coping the content of a cell in Excell...</title>
      <pubDate>Mon, 30 May 2011 06:01:56 +0000</pubDate>
      <link>http://macosx.com/threads/applescript-coping-the-content-of-a-cell-in-excell.318622/</link>
      <guid>http://macosx.com/threads/applescript-coping-the-content-of-a-cell-in-excell.318622/</guid>
      <author>invalid@example.com (audiopost)</author>
      <dc:creator>audiopost</dc:creator>
      <content:encoded><![CDATA[Hi there,<br />
I&#039;m new here and a very interested beginner. <br />
<br />
<br />
I&#039;m trying to create a script that copies the content of a highlighted cell in Excell and then paste that content on a new TextEdit document or just display on finder.<br />
<br />
The Excell content is a few words sentence.<br />
<br />
Thanks in advance for the help<br />
audiopost]]></content:encoded>
    </item>
  </channel>
</rss>
