You are not logged in.
I see that Feeder is AppleScriptable and I purchased a license largely based on this. I am trying to set up a podcast for myself that has new entries automatically generated by a script. I'm good and putting together scripts by copy and paste but not so much from scratch, can you point me to examples of Feeder AppleScripts that update an RSS feed?
Offline
I think I replied to this via email, but here it is again for the forum.
Something like this will add a new item to the selected feed and then publish it:
tell application "Feeder"
set theFeed to selected feed
set episodeTitle to "This Episode's Title"
set episodeLink to "http://example.com/epsiodelink.html"
set enclosureFile to "Users:yourname:Desktop:Episode1.mp3"
make new feed item at theFeed with properties {feed:theFeed, item title:episodeTitle, item link:episodeLink, enclosure upload file:enclosureFile}
publish theFeed
end tellOffline
Thank you, how would I specify an existing podcast without it being selected?
I tried setting the "theFeed" variable to the name of my test podcast (named "Driveway") and got this error:
Feeder got an error: Can’t make "Driveway" into type location specifier.
Thanks.
Offline
You would have to go through all the feeds until you find the one you want:
set theFeed to null
repeat with thisFeed in folder items of root folder
if name of thisFeed is "The Feed You Want" then
set theFeed to thisFeed
exit repeat
end if
end repeatI plan to improve this in the future so you can just use get feed "Driveway".
Offline
When you improve this please also include some AppleScript examples so we don't have to bug you. :-)
Offline
I am right now trying to set up Feeder to run on another system to generate another RSS feed for me. The script snippet I was using before based on your suggestion isn't working on this system. The system in question is running OS 10.4.10, and I notice when I opened the script that the text had changed in the script...
repeat with thisFeed in every «class FRim» of «class Arrf»
--set whatIsTheFeed to thisFeed
if name of thisFeed is "NewFeedName" then
set theFeed to thisFeed
set episodeTitle to (dateSent & " total")
make new «class FItm» at theFeed with properties {«class FeeD»:theFeed, «class FIti»:episodeTitle, «class FIds»:DollarTotal}
«event FeedCPub» theFeedCan I run this older OS with Feeder and AppleScript?
Offline
It should work as long as Feeder is at the same version (1.5.7 is the current version), although I can't test 10.4.10 (10.4.11 is the current version of Tiger), scripts often look like that before Script Editor knows where the application is. Compiling or running the script should cause those things to get resolved.
Try opening Feeder's AppleScript dictionary in Script Editor, if you can things like "feed item" in the Feeder suite, it should work.
Offline
Thanks, compiling the script in OS 10.4.10 didn't help.
I will upgrade this particular system to OS 10.5 and try things then.
Offline