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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Using Click in AppleScript rebello95 Mac Programming 3 Nov 8, 2011 06:09 AM
Use backslash in Applescript running a Bash Shell Script rebello95 Mac Programming 12 Nov 3, 2011 01:56 PM
Trying to Compare AT&T/Verizon Family Plans for 4S puma1552 iPhone 0 Oct 7, 2011 12:19 AM
How to edit number precision in Applescript?? crd26 Mac Programming 3 Aug 15, 2006 01:49 PM
Trying to burn a CD in NERO in Virtual PC 6, it wont work, what gives? shadowmoses Mac Basics and Help 6 Aug 4, 2005 01:15 AM


All times are GMT -5. The time now is 04:30 AM.

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

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