if else loop
if else loop
- Subject: if else loop
- From: Mark Ratledge <email@hidden>
- Date: Sat, 12 Dec 2009 13:12:57 -0700
I'm missing something very obvious....
This script returns the value of the_title to the clipboard, not
the_text (under 10.4.11, if it makes a difference):
set the_title to the clipboard
tell application "System Events"
set myApp to name of first application process whose frontmost is true
if myApp is "Pages" then
tell application "Pages"
set the_url to the selection
end tell
else if myApp is "BBEdit" then
tell application "BBEdit"
set the_url to the selection
end tell
else
return
end if
end tell
set the_text to " <a href=\"" & the_url & "\" title=\"" & the_title &
"\" class=\"external\" " & the_title & "</a>"
set the clipboard to the_text
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden