Trixology

WeatherCat => WeatherCat Integration => Topic started by: elagache on April 30, 2012, 11:34:48 PM

Title: WeatherCat Scripts *BETA* of 2012-04-30
Post by: elagache on April 30, 2012, 11:34:48 PM
Dear WeatherCat AppleScript fans,

Hope I'm not rushing this release out a little quick, but everything seemed okay and hate to sit on it.  From now on, I'll just go by the date so this is the release of April 30, 2012.  You can download it here:

http://www.canebas.org/WeatherCat/AppleScripts/WeatherCat%20Scripts%202012-04-30.zip (http://www.canebas.org/WeatherCat/AppleScripts/WeatherCat%20Scripts%202012-04-30.zip)

However, the AppleScripts themselves will get unique version numbers as they are changed.

The release notes are as follows:

With this release comes the first issue of upgrading.  There is a file called Upgrade Instructions.rtf that will provide a recommended procedure for this particular upgrade.  In this case, the upgrade path is fairly obvious.  Quit the AppleScripts that are running and need to be upgraded, copy the updated AppleScripts, and copy the updated documentation.  In that file is described another process where you move your preferences and current weather data.  This might a be case where you would want to do it this way because I've created some aliases to the documentation for quick reference within the WeatherCat Scripts folder.  If you truly want a mirror-image of my development folder, that's the best way to get it.

Give'em a try and let me know if you have any problems with them!  [computer]

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: WCDev on May 01, 2012, 12:06:53 AM
Nice work Edouard  [tup] I've just added some basic info to the wiki ( http://wiki.trixology.com/index.php/Integration )

Cheers,
Stu.
Title: Thanks Stu! (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 01, 2012, 12:57:33 AM
Howdy Stu and WeatherCat fans,

Nice work Edouard  [tup] I've just added some basic info to the wiki ( http://wiki.trixology.com/index.php/Integration )

Thanks Stu!  I'm behind on stuff like adding to the Wiki.  That should help folks find the scripts.  I'll make a point to keep that info up to date in the future.

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: jace on May 01, 2012, 02:17:21 PM
It's always me Edouard - sorry [computer]

In the start WC script there are two errors. (Please see attachment) Compile will not let me alter the application descriptions unfortunately.

In the WC stop script the applications are per the documentation. :)

Regards

JC
Title: How are you trying to change them? (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 01, 2012, 04:32:35 PM
Hi JC and WeatherCat AppleScript fans,

In the start WC script there are two errors. (Please see attachment) Compile will not let me alter the application descriptions unfortunately.

Unfortunately, I don't see any error messages in the screen-shot you have taken.  The one thing I see is if you are trying to comment out the WC ET Reporter script, the two dashes are missing.  There are several way to comment things out in AppleScript, but the one I suggested was to put two dashes and a space in front of the line you want AppleScript to ignore.  So to have the Start WeatherCat Scripts not start up WC ET Reporter you need to modify that line like this:

-- tell application "WC ET Reporter" to activate

Is that the problem?  If not, please try to relay to me the error message so I can try to figure out what's wrong.

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: jace on May 01, 2012, 05:14:54 PM
Hi Edouard

In the application there are a total of six Apple Scripts that your script opens in turn.

In the screen shot Number 4 and 5 were both named Weather Cat, not WC Storm Monitor and WC Status Growler as in the Stop Script. When I tried renaming them before Apple Script Editor refused to rename to the correct application names.

Regards

JC
Title: Something corrupted (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 01, 2012, 10:23:53 PM
Hi JC and WeatherCat Scripters,

In the screen shot Number 4 and 5 were both named Weather Cat, not WC Storm Monitor and WC Status Growler as in the Stop Script. When I tried renaming them before Apple Script Editor refused to rename to the correct application names.

Okay sorry, I hadn't noticed that the wrong applications were in those fields.  Unfortunately, I have no idea how that could happen.  I just checked again and the AppleScripts are correct on the server.  How on earth could the AppleScript editor "randomly pick" some other application name instead of the one I put in there!?!!?

Please try two things.  One is to get an original copy of the WeatherCat Script folder: http://www.canebas.org/WeatherCat/AppleScripts/WeatherCat%20Scripts%202012-04-30.zip (http://www.canebas.org/WeatherCat/AppleScripts/WeatherCat%20Scripts%202012-04-30.zip).  Open the Start WeatherCat Scripts file using the AppleScript Editor and do a Save-As to overwrite the file format.  It is known that Lion AppleScript formats are supposed to be different from Snow Leopard formats.  The Snow Leopard AppleScripts will run fine on Lion, but editing them has been a problem in the past.  So you might have to do the Save-As to avoid any corruptions.

The second thing is an extension of the first.  Instead of trying to keep your old installation, instead copy your preferences and weather data into a freshly-downloaded copy of WeatherCat Script folder.  The instructions are included with the latest version and are repeated below:


Let me know if either of these two steps puts your machine back on track.

Sorry, it isn't supposed to be this hard!  [banghead]

Cheers, Edouard
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Randall75 on May 01, 2012, 10:34:46 PM
Hi Edouard
 Just open mine up here the start script and every thing is OK here
 [cheers1]
Title: You're on Lion - right? (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 02, 2012, 12:28:46 AM
Hi Randall and WeatherCat scripters,  [cat]

Just open mine up here the start script and every thing is OK here

This is your new iMac that is running Lion - correct?

So it isn't simply a Lion/Snow Leopard incompatibility - whatever it is . . . .  ???

Please folks, keep me advised on any other weirdness.

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Randall75 on May 02, 2012, 01:39:09 AM
Hi Edouard
 New iMac but I'm running Snow Leopard 10.6.8 I went  to SL from Lion
But I did the up grade from 9 to 9.1 of your scripts
 [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Steve on May 02, 2012, 02:32:23 AM
Edouard,

This just came out of nowhere. This is the script you sent me earlier, as I haven't updated to the latest yet. These have all been running for six days now.

(https://img.skitch.com/20120502-cfsygjh4n4949w35q28wf348tc.jpg)
Title: How did you do that?? (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 02, 2012, 02:53:33 AM
Hi Randall and WeatherCat fans,

New iMac but I'm running Snow Leopard 10.6.8 I went  to SL from Lion

Ya' Did!!  [tup]  Cool!!!!  [bounce] How!?!?!  ???

If you managed to tame some newer Mac hardware to run Snow Leopard - you are a real hero to all of us!!  [rock]

Cheers, Edouard  [cheers1]
Title: That error is *SO* March! (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 02, 2012, 03:05:58 AM
Howdy Steve and MacWeather AppleScript fans, . . .

This just came out of nowhere. This is the script you sent me earlier, as I haven't updated to the latest yet. These have all been running for six days now.

 ;) Why that error is *SO* March 2012 . . . you are completely out of style!  [lol2]

Seriously, your WC Script tools.scpt library file is out of date.  Perhaps your WC Mail tools.scpt as well.  Your WC Web Data Uploader must have just hit Internet upload error that could have been too long and I've added AppleScript tools to keep error messages from going beyond the length of strings that Growl can cope with.  I learned from PWS outage that Growl isn't as bullet-proof when it comes to the error messages you can send to it.  So I have some text processing to avoid blowing up Growl.  stripWhiteSpace is one such function.

You could either just shut everything down and replace all the library files in WeatherCat Scripts/WeatherCat Script Library/WeatherCat Script Libraries or you could take the safe route and instead move your preferences and weather data to a new copy of WeatherCat Scripts using the procedure described earlier in this thread: http://athena.trixology.com/index.php?topic=235.msg2353;topicseen#msg2353 (http://athena.trixology.com/index.php?topic=235.msg2353;topicseen#msg2353).  My recommendation would be to copy your preferences and weather data to a "fresh copy" of the WeatherCat Scripts folder just to make sure you are completely current.

Sorry Steve, you are sufferin' from being a victim of early beta-testing! (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/clonk_head.gif)

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Steve on May 02, 2012, 03:39:45 AM
I thought it might be due to being an earlier release. Just thought it odd that it never happened before, and popped up while I was doing absolutely nothing on the computer. Just sitting here at the desk helping daughter study for a history test, and saw it out of the corner of my eye.

I'll with over to the current stuff tomorrow.

Thanks,
Steve
Title: Re:How did you do that- WeatherCat Scripts *BETA* of 2012-04-30
Post by: Randall75 on May 02, 2012, 12:41:21 PM
Hi Edouard
Well I talk to Apple Care to so many they aren't as smart as they should be anyway
 To get it to work you 1st must get a copy of the original  Install disc that came with the iMac before Lion came out
( Snow Leopard Retail won't work Apple said it would so I bought it and it didn't work you need at least 10.6.7 original install disc for it work)
Then do a complete erase and install it with the drivers from the 10.6.7 disc note if your iMac was built after Dec. 2011 forget it won't work any more Apple has change something for now won't work.
So I have a new Snow Leopard Install Disc 10.6.3 just to look at Apple won't take it back since I open it but they said it would work. Dah
 [cheers1]
Title: Interesting news for Lion haters (Re:How did you do that?)
Post by: elagache on May 02, 2012, 09:29:14 PM
Hi Randall and WeatherCat fans,

Well I talk to Apple Care to so many they aren't as smart as they should be anyway

*Sniff*, sad times for the Apple faithful.  :(

To get it to work you 1st must get a copy of the original  Install disc that came with the iMac before Lion came out
( Snow Leopard Retail won't work Apple said it would so I bought it and it didn't work you need at least 10.6.7 original install disc for it work)
Then do a complete erase and install it with the drivers from the 10.6.7 disc note if your iMac was built after Dec. 2011 forget it won't work any more Apple has change something for now won't work.

Looks like a rather tricky process, but perhaps some folks will be bold enough to try.  Sure am sorry that Apple keeps shuffling our environment - but what can ya' do? (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/confused_do_no.gif)

Cheers, Edouard
Title: Anyone using latest Growl? (Re: WeatherCat Scripts)
Post by: elagache on May 02, 2012, 09:34:59 PM
Dear WeatherCat AppleScript fans,

Poor JC is running into a mountain of troubles trying to run my AppleScripts and I'm mystified as to why.  ???

This may or may not have anything to do with it, but it would be good for me to know anyway.  Has anyone who is running Lion upgraded to the "new and improved" versions of Growl that you have to buy on the App Store for a buck? I took a look at the changes to Growl and thought my scripts should run okay without any modifications.  It certainly would be good to know if that is true in practice though!

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Tornado Tim on May 02, 2012, 09:45:35 PM
I have noticed with Lion on my Macbook, apps that used to take advantage of GROWL such as Sequel Pro etc do not come up with notifications anymore.

I could possibly mean the apple scripts needs a update to interface with the latest growl version (have a look at the SDK for Growl)

Title: Re: Anyone using latest Growl? (Re: WeatherCat Scripts)
Post by: HairyMcLeary on May 02, 2012, 11:23:33 PM
Dear WeatherCat AppleScript fans,

Poor JC is running into a mountain of troubles trying to run my AppleScripts and I'm mystified as to why.  ???

This may or may not have anything to do with it, but it would be good for me to know anyway.  Has anyone who is running Lion upgraded to the "new and improved" versions of Growl that you have to buy on the App Store for a buck? I took a look at the changes to Growl and thought my scripts should run okay without any modifications.  It certainly would be good to know if that is true in practice though!

Cheers, Edouard  [cheers1]

I haven't had a chance to upgrade to the new scripts yet, but the old ones didn't work properly with the new Growl and Lion.
The only Growl notification you ever receive is when the scripts first start... then nothing.

Tony
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Steve on May 03, 2012, 02:59:28 AM
I didn't get a chance to install your upgraded scripts today, as I was away all day (see MacWeather). But I am running Lion, old Growl v1.2.2 (the free one still available here (http://growl.info/downloads)), and all the last scripts that you sent me work wonderfully! Old Growl v1.2.2 works fine with Lion, and all other apps that send Growl notifications work as they always have.
Title: Okay let me check tomorrow (Re: latest Growl?)
Post by: elagache on May 03, 2012, 03:23:16 AM
Hi Tony and WeatherCat AppleScript adventurers,

I haven't had a chance to upgrade to the new scripts yet, but the old ones didn't work properly with the new Growl and Lion.
The only Growl notification you ever receive is when the scripts first start... then nothing.

Okay, this sounds very much like what JC is experiencing.  I sure thought there weren't any changes to the AppleScript interface in the new Growl, but I'd better take another look tomorrow.

Cheers, Edouard  [cheers1]
Title: Old Growl calls *should* work (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 03, 2012, 05:45:37 PM
Dear WeatherCat AppleScript fans,

I just glanced over the AppleScript comments about Growl 1.3 and I don't see any changes in the core scripting that actually generates notifications.  It looks to me that the old calls should work unaltered.  So I continue to be baffled why my scripts don't work. 

I'll need to check the Growl discussion group and find out about how to make AppleScripts that are backwards compatible.  However, I've got other chores on my plate right now.  I'll report back when I know more.

Cheers, Edouard  [cheers1]
Title: AHHHHH!!!!!!!! Growl 1.3 won't work! (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 03, 2012, 10:51:50 PM
Dear WeatherCat AppleScript fans,

AHHHHHHHH!!!!!!!!! (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/shocked_wide-eyed_smiley.gif)

I asked my question on the Growl forum and someone quietly pointed out that there is a "minor", "insignificant", "you'll never notice it", change in Growl version 1.2 and 1.3.

All they did was change the name of the application that AppleScripts are supposed to use from GrowlHelperApp to . . . . Growl.   :o

But wait there is more cruelty . . . . . could they have just said that?  . . . . of course not.

Quoting directly from the 1.3 changes notes (http://growl.info/documentation/applescript-support.php#1.3changes):

Quote
Any existing AppleScript will need to be changed to account for GrowlHelperApp and Growl, and not just GrowlHelperApp.

Now anybody reading this could intuitively conclude that they have changed the name - correct?  Especially when they have sample code that . . . . doesn't mention any name to use in the scripting at all, and doesn't explain why . . . . . . . (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/rant.gif)

 ;) Ya'know, it is experiences like this that make's a person wonder if the criteria for the justifiable use of force shouldn't be enlarged!! (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/Blasting.gif)

*Heavy Sigh* . . . . . . (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/devil.gif)

So to make a long lament longer, unfortunately my AppleScripts are indeed broken under Growl 1.3.  Worse, it is going to take a while to change everything to use the recommended calls instead of what I had been using before.

So sorry gang . . .   (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/pout.gif)   All I can recommend for now, is that you really want to use my AppleScripts that you temporarily downgrade to Growl 1.2.2 which you can download for free at the Growl web page: http://growl.googlecode.com/files/Growl-1.2.2.dmg (http://growl.googlecode.com/files/Growl-1.2.2.dmg).  If you do that, you'll be able to reinstall Growl 1.3 from the Mac App store when I have the new versions ready.

Bummer Dude!!  [banghead]  Edouard

Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Steve on May 03, 2012, 11:41:36 PM
I'm glad you got it sorted out. I'm planning on sticking with the free Growl 1.2.2 as long as possible. I prefer that it is an extension rather than a stand-alone application. I forget what it was, but when I looked at the Growl 1.3 compatibility list some time ago, an app I use was not compatible with the App Store Growl.

I try to stay away from App Store versions of applications that are still available as a download from the developer. In several, the AppStore version has features removed to comply with the Sandbox and not touching certain system things requirements.
Title: Could a Lion person test this? (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 04, 2012, 12:04:22 AM
Dear WeatherCat AppleScript fans,

Okay, now that I know what I'm looking at I've been studying the examples on the Growl website and it doesn't look as horrible to convert my scripts to run anywhere as I feared.

Attached to this posting is a slightly modified version of the WC Temperature Falling that should run on Growl 1.3 just as well as Growl 1.2.  Could folks running both platforms give it a try?  Obviously, especially curious about Growl 1.3 since I can't test this on my computer.

Keep in mind it will ONLY run if you have it in the WeatherCat Scripts folder and have some sort of preference file provided for this script (the default one is fine.)  The big improvement in the current version of these scripts is that they don't need to be in a specific location, but they do need to be kept in the WeatherCat Scripts folder in order to find their support files.

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: jace on May 04, 2012, 02:12:58 PM
Yo Edouard

Downloaded and running on my system with Growl 1.3, as can be seen on the attachment. Will see what happens over the next few hours.

JC
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: elagache on May 04, 2012, 10:08:25 PM
Hi JC and WeatherCat AppleScript fans,

Downloaded and running on my system with Growl 1.3, as can be seen on the attachment. Will see what happens over the next few hours.

Thanks for the confirmation.  This should simplify my code fixes.  I don't think I can just patch everything within the scripts, but this will reduce the amount of recoding.

Do you have WC Temperature Falling set up to trigger with a WeatherCat custom alert?  If not, could you just trying running it every now and then?  Since you had problems after initially running a Growl script the acid test is if you can run it over and over again without failure.

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Steve on May 05, 2012, 12:58:04 AM
Sorry, I still haven't installed the updated scripts. Daughter's NBA graduation tomorrow and grand-nephew's birthday party Sunday kinda eats up the weekend. (Not that a weekend is any different than the rest of the week for me. ;) )
Title: At this rate I'll leapfrog ya' (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 05, 2012, 03:19:00 AM
Howdy Steve and WeatherCat AppleScript fans,

Sorry, I still haven't installed the updated scripts.

Of course you haven't, I've already started revising them to work with Growl 1.3 - and you can't have those versions just yet!!  ;D

Daughter's NBA graduation tomorrow and grand-nephew's birthday party Sunday kinda eats up the weekend. (Not that a weekend is any different than the rest of the week for me. ;) )

Ain't it awful,  ;) . . . . .  work is for folks who don't have a real life!!   [lol2]

Happy weekend everybody!!  [bounce]

Cheers, Edouard  [cheers1]
Title: Update on Growl 1.3 upgrade (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 09, 2012, 12:49:59 AM
Dear WeatherCat AppleScript fans,

I'm having a really bad week of hassle upon hassle.  Nothing catastrophic, but still annoying.  As an example, today was a special recycling day provided by the local "waste management service" (garage to you and me.)  To my shock they insisted they would recycle lawn mowers and I had an old machine that had died.  Well, having someone pick it up sure beats any other way to get rid of it. . . . . . . So,  It only took two phone calls to get these $#!#!#@# folks to do what they said they would do if I just put the mower on the curb!!  >:(

In the meantime, I've been sniping at the AppleScripts converting them to the new scripting code that is supposed to work with old and new Growl.  I ran into a frustrating problem in which it appears this wasn't working.  However, I as converting WC Web Data Uploader and WC Twitter Uploader.  It appears I was just unlucky enough to have Internet connectivity issues just as I was testing.  [banghead]

I've converted a little over 1/2 the scripts right now.  I'll try to nibble on the rest in between the other obligations that are bouncing me around this week.  As soon as I've got them all done and have given them some run time to test, I'll release a new version of the collection.

Cheers, Edouard  [cheers1]
Title: Don't use shutdown script inside WeatherCat (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on May 12, 2012, 10:31:05 PM
Dear WeatherCat AppleScript fans,

Yeah I should have tried this before but . . .  insert here the usual lament about lack of time . . . .

Today was my first attempt to use WeatherCat to launch and shutdown all my AppleScripts using the launcher scripts I wrote.  Launching works just fine.  Alas, shutting down runs into a problem.  I have pauses so that all the dependent AppleScripts shut down before the two AppleScripts that are used by others quit.  I do this to avoid this problem of one AppleScripts accidentially launching another which is in the process of being shutdown.

Unfortunately, If you launch Stop WeatherCat Scripts as the shutdown action from WeatherCat, one thing you cannot "delay" is WeatherCat itself shutting down.  Sure enough, WeatherCat has completely quit before my AppleScripts have.  During the delay at least one of the AppleScripts sends an AppleScript request that - causes WeatherCat to automatically start up again . . . .  >:( 

So the seemingly obvious idea of making Stop WeatherCat Scripts the shutdown action won't do at all what you want.  Instead it will cause WeatherCat to restart - not finally quit.

You have two options.  You can either run Stop WeatherCat Scripts manually just before stopping WeatherCat, or you could have the AppleScript shut WeatherCat instead having WeatherCat control the operation.  To do that you could add the following line at the bottom of Stop WeatherCat Scripts:

Code: [Select]
tell application "WeatherCat" to quit
Then when you launch Stop WeatherCat Scripts, the last action it would do is shutdown WeatherCat itself.

Since I normally shutdown WeatherCat "by hand" saving one action to quit isn't worth the trouble for me.  However, if you want to automate your start up and shutdown processes, adding that line above should make it possible to shutdown using something like Automator.

By the way, the AppleScript command:

Code: [Select]
tell application "WeatherCat" to activate
Causes WeatherCat to launch without that problem of the startup window remaining open.  This line could be used in some sort of an automated start sequence if using Automator directly is a nuisance.

Cheers, Edouard  [cheers1] 
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: kelsowx on March 30, 2013, 11:53:43 PM
Well, as one who never has enough time, I sympathise.

I finally got around to installing Weather Cat, having run LWC for ages. My problem is that I simply forget how all this stuff works and how they all relate to each other, and have to spend days scrolling through forum posts to get the latest info to reanalyse over again.

Anyway I have now downloaded all the new forms of Script, and put the Script folder in my Applications home folder. I then modified and ran the Twit String Test.scpt, only to find that changing the units does not change the output, similarly, changing the timezone does not change the output. I still get US units and PDT as the time zone despite my edits. Restarting the script editor does not help


Title: Do you have a WC Twitter Uploader prefs.scpt file? (Re: WeatherCat Scripts)
Post by: elagache on March 31, 2013, 09:15:39 PM
Dear kelsowx,

Sorry, I'm afraid I don't understand very clearly your problem.  However, there have been a lot of changes to these AppleScripts in the transition to working with WeatherCat.  The fact that you are getting the same defaults as I set up the program with suggests to me that you haven't got the preference file correctly installed.  There is now a separate preference file called: WC Twitter Uploader prefs.scpt.  It needs to be put in this folder:

~/Applications/WeatherCat Scripts/WeatherCat Script Library/WeatherCat Script Prefs

Is that where you have created your Twitter string and set the other preferences?  I know of folks using WC Twitter Uploader using metric units and I looked over the code, it doesn't override your preferences.  So you should be able to get what you want out of the AppleScript. 

Please take another look at the revised documentation and let me know if I can further help you.

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: faymondo on June 13, 2013, 04:50:35 PM
My tweets stop showing on Twitter on June 11th. Somebody has suggested it's because Twitter has ended the V1 API. Can anybody provide an update on this ?
Title: JA Computing library broken. (Re: WeatherCat Scripts *BETA*)
Post by: elagache on June 13, 2013, 10:24:42 PM
Dear Faymondo and WeatherCat twitter fans,

My tweets stop showing on Twitter on June 11th. Somebody has suggested it's because Twitter has ended the V1 API. Can anybody provide an update on this ?

My AppleScripts use a library from J.A. Computing to actually interact with Twitter:

http://www.jacomputing.net/ (http://www.jacomputing.net/)

The versions of the AppleScript libraries were out of date in my AppleScripts.  However, I just updated them and still no automated Twit is posted.  I fear that your suspicion is correct and the J.A. Computing libraries are using V-1 of the Twitter API.  Since my AppleScript is completely dependent on that library - there is nothing I can do.  Sorry, we'll just have to wait and see if J.A. Computing can come up with version of their library that works with the Twitter current API.

Sorry gang.  :(

Cheers, Edouard
Title: Update from J.A. Computing (Re: WeatherCat Scripts 2012-04-30)
Post by: elagache on June 13, 2013, 11:26:02 PM
Dear fans of my beleaguered AppleScripts,

I sent an inquiry to Jesse Almanrode of J.A. Computing to see if there was any hope if getting ASTwitterLibrary library working again. I just got this reply:

Quote
Thanks for the email.  Actually, I am currently in the process of getting ASTwitterLibrary working with version 1.1 of the Twitter API.  Twitter shutting down 1.0 was a little surprising and I was hoping they would hold off longer than they did.  According to Twitter the switch to 1.1 should be seamless but, alas, it isn't. 

I don't have a timeframe for the update at the moment but wanted to let you know that I am (and was) already working on getting this working again.  I know we AppleScripters are a dying breed and scripts like ASTwitterLibrary (and ASObject) are the last of their kind.

Thanks again for using ASTwitterLibrary and ASObject.

So while our weather Twits will be down for some time, there is hope that they will be back on line in the not too distant future.

Cheers, Edouard  [cheers1]
Title: Re: WeatherCat Scripts *BETA* of 2012-04-30
Post by: Steve on June 14, 2013, 01:47:22 AM
Thanks for checking with the source and getting the definitive answer, Edouard.

Steve