Skip to content

Instantly share code, notes, and snippets.

@ePirat
Created August 8, 2011 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ePirat/1131555 to your computer and use it in GitHub Desktop.
Save ePirat/1131555 to your computer and use it in GitHub Desktop.
AppleScript Fun
set txt to "line 1
line 2
Xeon3D 3
line 4"
set txtlist to paragraphs of txt
repeat with theLine in txtlist
if theLine contains "Xeon3D" then
return theLine as text
end if
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment