Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 22, 2006, 10:24 PM   #1
sinfulboi
macrumors newbie
 
Join Date: Dec 2006
trying to compare url sourcecode in applescript

hey there im just a newbie to applescript and was wondering if there was a simple way of grabbing the url from an online source and then comparing it to one on my harddrive.

just viewing the source of the page would be a great start so if there is anyone out there who can help me... please... dont be shy
sinfulboi is offline   0 Reply With Quote
Old Dec 22, 2006, 10:31 PM   #2
iMeowbot
macrumors 601
 
iMeowbot's Avatar
 
Join Date: Aug 2003
I don;t think I'd have the patience to make something like that happen in Applescript

There are two nice little shell commands, curl and diff, that would make this kind of thing really easy. You can run those from Applescript, if you prefer.
iMeowbot is offline   0 Reply With Quote
Old Dec 22, 2006, 10:36 PM   #3
sinfulboi
Thread Starter
macrumors newbie
 
Join Date: Dec 2006
thank you... i spose since i am new to the whole applescript world i am keen to try and do everything in it... but is there no easy way just to save the page source of a url to a file?
sinfulboi is offline   0 Reply With Quote
Old Dec 23, 2006, 01:01 AM   #4
mduser63
macrumors 68040
 
mduser63's Avatar
 
Join Date: Nov 2004
Location: Salt Lake City, UT
Send a message via AIM to mduser63
Quote:
Originally Posted by sinfulboi View Post
thank you... i spose since i am new to the whole applescript world i am keen to try and do everything in it... but is there no easy way just to save the page source of a url to a file?
Yes, with curl. You can easily call commands like curl using the AppleScript syntax:

do shell script "put your shell script here"
mduser63 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Beyond Compare 4 is now in beta mcsolas Mac Applications and Mac App Store 0 Jan 11, 2014 12:32 PM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Programming 0 Oct 28, 2013 11:38 PM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Applications and Mac App Store 0 Oct 28, 2013 11:32 PM
Using a Hyphen In A URL vs. Using A URL with .us TLD steiney Web Design and Development 32 Jul 12, 2013 02:30 PM
Creating a random number within a URL using Applescript moorbull Mac Programming 1 Jul 19, 2012 08:16 AM

Forum Jump

All times are GMT -5. The time now is 07:25 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC