Script to open RSS feed url's and post those in the background to a webpage

Dear everyone,
Im trying to work on a script that should do:
- Read My Apple mail RSS feeds every 120 seconds
- extract a NUMBER from the links from those RSS feeds
- then post them to a website url site.com/rss.php?id=<extracted id>
- It should run totally in the background of my apple
- The links should be posted in the background also without opening any browser or safari
Is this possible?
I have my apple now 4 months and this is my first applescript project, so its a bit too much for me, ive spend several hours investigating on how to do this can someone help me out a bit please?
on idle
if application "Mail" is running then
-- read RSS feeds from apple mail
-- Extract link ID www.site.com/?id=12345
-- Post Id 12345 to http://site.com/rss.php?id=<the id>
end if
return 120
end idle

Read My Apple mail RSS feeds every 120 seconds
Start by using a different RSS application.
Mail.app doesn't provide any access to RSS feeds via AppleScript, so there is no chance of doing this with Mail.app (or, at least, no easy way to do so).
Try something like NetNewsWire instead.
Once you have a viable app, the first part is pretty straightfoward:
on idle
 if application "NetNewsWire" is running then
  --extract a NUMBER from the links from those RSS feeds
  tell application "NetNewsWire" to set numLinks to total unread count
 end if
 return 120
end if=idle
From here, though, I don't know what you're trying to do. You say:
then post them to a website url site.com/rss.php?id=<extracted id>
Do you mean you want to post the number of RSS messages (since that's what you asked for earlier), or do you mean you want to re-post the RSS articles? Or do you mean you want to download the links and re-post the entire linked article?
That's three options (and there are probably more), each of which require a different approach.

Similar Messages

  • Why does my blog's RSS feed not show all posts in the blog

    I have a blog with some 38 posts in it yet when I view the RSS feed url I only see 16 of the posts. Stangely if I show this feed in Google Reader it will show all the posts but viewing the RSS feed directly in any browsershows any more than the 16.
    I am wanting to show all so I can export the xml file to Wordpress blog for all my posts and then reimport back into a new BC blog.
    I have checked the RSS items and confirmed that all the posts are included in this RSS feed.
    The RSS feed is http://topleftdesigns.com.au/RSSRetrieve.aspx?ID=3330&Type=RSS20 on my blog at http://topleftdesigns.com.au/_blog/Building_a_Better_Online_Business
    Thanks... Greg

    No your not Sidney... after I posted the above question I posted a new "test" article to the blog and later in the evening I saw that the new post had been picked up by the RSS feed and at the same time it picked up all the other posts that were not previously showing. The workings of RSs is sometimes a mystery but anyhow all seems fine now for whatever reason.
    Thanks for looking in... Greg

  • Error messages when submitting a validated RSS feed URL to iTS.

    Why do I keep getting error messages when submitting a validated RSS feed URL to iTS. Feed is http://streaming.integrationworks.com:3000/archive/feed2.xml
    I get variations on the follwoing message: "We had difficulty reading this feed. Bad http result code: 504"
    I validated this file at http://www.feedvalidator.org/. I am able to manually place it in iTunes (Open Stream) and download episodes. I can paste the URL in my browser and retrieve an RSS feed page.
    Any ideas?
    Rick

    You have to remember that when subscribing manually, it's only your iTunes application which is doing this - the Store is not involved at all. When submitting, the Store software checks the feed as a technical check before its assessed for content by humans; but how this is done and what sort of call is made to the server is another of Apple's dark secrets.
    You're the third with a similar situation in the last couple of days, and I've seen this arise before: though the specific message about a proxy server is unique to you. (A proxy server would act as an intermediary - anyone accessing the feed would ask the proxy for it, and the proxy would retrieve it from the actual server and pass it back, masking the original server's URL in the process. Whether this is actually what is going on is obviously something only your server technicians can say - and then there's the question of what is different about a request from the iTunes Store.)
    If all else fails you could place the feed on another server and try again - you could do this and leave the episode media files where they are, they don't have to be on the same server as the feed, as long as the server in question can handle 'byte-range requests' (which is a quite separate can of digital worms).

  • Safari 4.0.3 fails to open RSS feeds

    hi,
    on my machine safari is unable to open RSS feeds.
    I just get an error saying "can't open connection".
    Also in the mail application the subscribed RSS feeds don't update.
    When I change the system user everything works fine,
    so it seems to be a user-profile problem.
    I found several posts on that via google and deleted a lot of safari system files, repaired user permissions, restarted a lot of times - but nothing helped.
    The problem remained after updating to snow leopard.

    Hello b:
    If you have not done so, reset Safari and then trash the preference file (com.apple.safari.plist). Then restart your computer and reenter your Safari personal preferences.
    Barry
    Message was edited by: Barry Hemphill

  • Alternate ways to update RSS Feed URL in iTunes Store

    Hey all,
    Ok, so I am having issues with updating my iTunes Store RSS URL. Here's the storyin a nutshell. If any of you have experience with this i would really appreciate some help, because I have been stuck for week now.
    I started my podcast using Podbean.com as a host, and when I first submitted my podcast URL to th iTunes Store, I used the RSS URL that podbean gave me which was http://unfilteredandrew.podbean.com/feed/. A few weeks later, I decided to move my host to SquareSpace, therefore I have a new RSS URL for the podcast now. I understand the directions frovided by Apple on how to change the URL by inserting the <itunes:new-feed-url> tags into the XML file. This is where the problem lies. Podbean.com is not able to instert this tag into my the XML file (its a long story, I have been dealing with thier incompitent customer service for weeks now). Let's assume for now that this method is not optional.
    SO my question to you guys is - is there another way to update the RSS URL feed? Currently the iTunes Store see's  http://unfilteredandrew.podbean.com/feed/as my RSS feed, but I want it to see the NEW one which is: http://andrewunfiltered.squarespace.com/podcast?format=rss
    Please help!!
    Kellen

    Ignore the 301 redirect - this is really intended for other rss readers than iTunes.
    If you are creating a feed somehow and submitting that to Feedburner, which then passes it on to iTunes, and if you can add the tag to that original feed it will also appear in the Feedburner feed and the redirect will take place.
    If you are creating the feed only in Feedburner by entering details, there you cannot directly edit the feed - I don't know whether Feedburner provides a way of doing this: most online podcast creation services don't.
    If that's the case then you will have to abaondon the old feed. You should attempt to get the old podcast removed from the Store - instructions here (though there have been a number of reports that iTunes Store staff are simply not bothering to carry out this process) - and submit your new feed as an entirely new podcast. You will probably need to make a small change in the title, as a bug in the Store software may tell you that the podcast has already been submitted: and of course you will lose any subscribers or comments.

  • Unable to open RSS Feeds in Safari, I am forced to use the Mail app.

    Unable to open RSS Feeds in Safari, I am forced to use the Mail app.
    Since I have Safari 6.0 (OS X Lion 10.7.4 on MacBook Pro bought this year)  I am being forced to use the Mail app in order to open RSS Feeds, but I do not want to use the Mail app.
    Does someone please has a solution for me? People form Apple, are you reading this? It is annoying me.
    Greetings

    The Corp giveth and the Corp taketh away!
    250 exciting new features in Lion and 300 new problems or deleted features!
    Firefox doesn't show how many unread items there are in a feed, but Safari 5.x did.  I guess I have no reason to use Safari anymore.

  • Latest ep of my podcast doesn't show in iTunes. Subscribers CAN download it. Podcast page shows 'Total: 3 items' but lists only items 2 and 3. RSS feed is validated and fine.

    Latest ep of my podcast doesn't show in iTunes store. Subscribers CAN download it. Podcast page shows 'Total: 3 items' but lists only items 2 and 3. RSS feed is validated and fine. How do I get iTunes to display it?

    I've used Feedburner many times and never had such a problem. I am a bit confused, forgive me if I ask for questions already answerd. Have you tried updating the podcast in someone elses copy of iTunes? My guess is that the file is bad since it is working in other programs but not iTunes. I would try making a new .mp4 file and podcasting it and seeing if that works.
    Good luck!
    ~Ben

  • How to get RSS feed url for site?

    Is there a way to get the RSS feed url for a blog using Safari?  I'm currently using FF for this since it is very simple.  But that's about the only reason I use FF.  Would be nice not to need two tools.
    I don't want to subscribe to the site in Safari.  I have an RSS Reader app that I plug the url into.  I just want to see the url.

    For some reason they removed that handy feature from Safari. But, there is an Extension called RSS Menu, which will add a button on your toolbar, giving you that function back.

  • If the RSS feeds contained pubDate and author that would be great!

    The RSS feeds you get from the discussions boards contain for each post tags like:
    jf:creationDate
    jf:modificationDate
    jf:author
    If the content of the jf:modificationDate tag where also included in a pubDate tag, and the jf:author content where also included in an author tag, then the author and posting date would be displayed in both NetNewsWire and Safari when viewing the RSS feed.
    As it is now, when you view an RSS feed (such as Troublesome Posts Procedure?), you don't see the author info, and every post has the same wrong date. The date shown is the date the feed was refreshed.
    Wouldn't it be nice to have this info displayed?
    800 MHz PowerBook G4, Blueberry iMac, 1.6 GHz G5   Mac OS X (10.4.2)  

    Have you tried a factory restore click the link
    http://docs.info.apple.com/article.html?artnum=60983
    This link is ino on the sad face
    http://docs.info.apple.com/article.html?artnum=61771

  • I can't open pages files from USB and iCloud due to : "The necessary file index.xml is missing".

    I can't open pages files from USB and iCloud due to : "The necessary file index.xml is missing". Original file is written on iMac (2014) and saved to an USB stick and then transferred till macBook Pro (2009, Yosemite) for editing. Then I shared the files by iCloud but I am not able to open them on iMac again. Niether can I use the USB stick to transfer the edited files back. I'm running Pages '09 4,1 (923) on the macBook and Pges 5.5.2 (2120) on the iMac.
    Håkan

    Pages 5.5.2 is extremely incompatible with even other Macs let alone the vast majority of PC and MsWord users out there, so not a good idea to leap into the fire with both eyes shut.
    After having done that to the first Pages 5 files, Apple has repeatedly done it to even the most minor point updates. Apple can't even anticipate its own erratic changes let alone what everyone else needs doing.
    Peter

  • How do I stop my new mac book pro from opening all my old emails and flasing them in the top right corner?

    How do I stop my new Mac book Pro from opening all my old emails and flashing them in the upper right.

    Copy the entire iTunes folder within the music folder on your old Mac to the music folder on your new Mac.
    You can use an external hard disc for the transfer, or you can connect the computers together using Firewire Target Disc Mode as explained here:  http://support.apple.com/kb/ht1661

  • HT1819 I have two existing podcasts on iTunes. I have new RSS feeds for both. Can I change the RSS feeds on my existing podcast listings or do I have to resubmit?

    I have two existing podcasts on iTunes. I have new RSS feeds for both. Can I change the RSS feeds on my existing podcast listings or do I have to resubmit?

    There is some info in this discussion.
    https://discussions.apple.com/thread/6024120?tstart=0

  • I have update to iOS 8.1.3, and I cannot open both centers, or use and cancel apps, or the screen change color to gray, or the display do not recognise that I touch it, and more. If I restart it, I find another mistake in next five hours.Help me pls.

    I have update to iOS 8.1.3, and I cannot open both centers, or use and cancel apps, or the screen change color to gray, or the display do not recognise that I touch it, and more. If I restart it, I find another mistake in next five hours. Help me please.
    iOS 8.1.3
    iPhone 5s 32 GB
    CPU 64 bit

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • How do I get a numbers spread sheet to open where I left it and not start from the beginning every time I open it?

    How do I get a numbers spread sheet to open where I left it and not start from the beginning every time I open it?

    There is no built-in setting for redirecting a bookmark to a new tab.
    Is it possible that the computer which does that has an add-on such as the Tab Mix Plus extension installed? TMP has a setting for that (Events > Tab Opening).
    https://addons.mozilla.org/firefox/addon/tab-mix-plus/

  • Live type files look grainy and do not fill the background when used for green screen backgrounds.

    live type files look grainy and do not fill the background when used for green screen backgrounds. Ideas?

    What I want to do is somehow make my entire iMovie project smaller by compressing it somehow but without losing any footage or audio or quality. At the moment the project is a 56GB iMovie project lasting approx 1hr. I have a mixture of miniDV footage, titles created in Live Type (they are better quality than anything available in iMovie) and audio.
    The miniDV footage is automatically compressed when it transfers from my camcorder to my Mac, no worries there.
    The LiveType titles contain a motion background (imported into LT) and then text which appears and disappears at set points. The titles vary in length but are about 5 seconds each.
    The file size for the LT titles is approx 180MB per clip, the movie requires about 20 or so of these clips, making a very large file size overall.
    Is there a way that I can save something in LT so that the file size is smaller yet still keep the quality and use the clip in my iMovie ?

Maybe you are looking for

  • Problem during  Data Warehouse Loading (from staging table to Cube)

    Hi All, I have created a staging Module in owb to load my flat files to my staging tables.I have created an Warehouse module to load my staging tables to Dimension and Cube that I have created. My senario: I have a temp_table_transaction which had lo

  • How do I receive messages on multiple apple id's on the same device

    I just upgraded to IOS7 and now I can't receive iMessages on one device for multiple Apple IDs.  I have two and typically receive messages on both but when I try to set up another email address to receive messages on in the device setting it tells me

  • GT80 SSD drive died, options ?

    my 5 month old GT80 had a SSD drive failure and it will no longer boot, the BIOS only sees 1 of the 2 SSD drives. was wondering if it would be possible to rebuild a new SSD array using RAID 1, so that if one drive fails again .. the other drive will

  • Hyperlink in iWeb

    Is it possible to setup iWeb pages to open a hyperlink in a new window, while keeping the old one open?

  • Music videos arent playng sound on ipod

    i got a music video on my ipod but now it isnt playing sound what do i do