Re:macosxhints - An AppleScript to email Safari URLs with titles
On Mon, 24 Mar 2003 11:10:29 -0600, Wayne Brissette [EMAIL PROTECTED], allegedly wrote: I'd like to *start* from a message I'm working on in PM, grab the URL of the top window of the default web browser, and paste it at the current insertion point of my message. Does anyone have a script that will do that? snip There is no cursor selection in the PM AppleScript dictionary. Without one the best options would be a script that take the URL and put them either at the beginning or the very end of the document. followed on Mon, 24 Mar 2003 12:11:48 -0500 by Jonathan Greene [EMAIL PROTECTED]: Considering you would have to run a script while in PM to hit Safari it would seem more efficient the other way... just my thought anyway. snip For me, it seems to be better to add once the URL is there... Pull or push? I like both ways, but I often find myself writing and wanting to pull a URL into the middle of a document. (Come to think of it, it would be great to be able to pull it into *any* application.) A paste from clipboard would be great, but I'd settle for being able to stick it at the end or beginning of the document currently being edited in PM. - Chris Plummer === ** CHRIS'S UNPREDICTABLE and OCCASIONAL Newsletter for Mac Users ** (Not exclusively) For Mac Users in Beautiful Western Central New Jersey. Published Unpredictably approximately every two weeks! Check the UNPREDICTABLE archive - http://www.unpredictablemac.com ===
Re(2): Strange Windows
Rick Lecoat [EMAIL PROTECTED] on Monday, March 24, 2003 stated: Of course there's another issue here: Since scripts in the User's own scripts folder appear in the scripts menu (and in the filters script popup) AFTER the scripts in the PM package itself, the ___NoSuchScript script *must* go in the Package otherwise it doesn't appear at the top of the list and its raison d'etre is lost. Point well taken! Wayne -- Nature can survive without man--in fact, that may be its salvation--but man cannot survive without nature. - Homero Aridjis Live DAT Music Page: http://homepage.mac.com/wayneb/ PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html Music Currently playing:
Re(2): Strange Windows
Received from: Wayne Brissette At: 4:31 pm (GMT) on Mon, Mar 24, 2003 I will reiterate my concern with people placing scripts inside the PowerMail package in Mac OS X. If people put scripts inside (/User// Mail/PowerMail Files 4/PowerMail Scripts/) instead of the PowerMail package, then there is less of a chance of a script getting deleted accidentally when you upgrade PowerMail versions. Of course there's another issue here: Since scripts in the User's own scripts folder appear in the scripts menu (and in the filters script popup) AFTER the scripts in the PM package itself, the ___NoSuchScript script *must* go in the Package otherwise it doesn't appear at the top of the list and its raison d'etre is lost. Rick --- G4/500 MHz (DP) :: OS 10.2.4 :: PM 4.1.2 :: 3 pane mode :: 768 MB RAM www.sharkattack.co.uk
Re(2): macosxhints - An AppleScript to email Safari URLs with titles
Considering you would have to run a script while in PM to hit Safari it would seem more efficient the other way... just my thought anyway. You could probably modify the scripts to work with the already active message rather than making a new message if this is what you want. For me, it seems to be better to add once the URL is there... -- There is perhaps nothing so bad and so dangerous in life as fear. --Jawaharlal Nehru on Mon, 24 Mar 2003 11:21:38 -0500 / Christopher Plummer said: On Fri, 21 Mar 2003 13:31:35 -0600, Wayne Brissette [EMAIL PROTECTED], allegedly wrote: http://www.macosxhints.com/article.php?story=20030318202727875#comments So normally I'm all for writing AppleScripts to solve problems. However this is one case where the recent AppleScript to mail a URL from Safari seem crude compared to the javascript solution... (FYI, I used it to send this email). Thanks again to Wayne and everyone else for all these additions! This one is great for originating a new mail from Safari! I'd like to *start* from a message I'm working on in PM, grab the URL of the top window of the default web browser, and paste it at the current insertion point of my message. Does anyone have a script that will do that? Much thanks, Chris Plummer === ** CHRIS'S UNPREDICTABLE and OCCASIONAL Newsletter for Mac Users ** (Not exclusively) For Mac Users in Beautiful Western Central New Jersey. Published Unpredictably approximately every two weeks! Check the UNPREDICTABLE archive - http://www.unpredictablemac.com ===
Re:macosxhints - An AppleScript to email Safari URLs with titles
Christopher Plummer [EMAIL PROTECTED] on Monday, March 24, 2003 stated: Thanks again to Wayne and everyone else for all these additions! This one is great for originating a new mail from Safari! I'd like to *start* from a message I'm working on in PM, grab the URL of the top window of the default web browser, and paste it at the current insertion point of my message. Does anyone have a script that will do that? Much thanks, Chris Plummer This is a bit tough. The issue is where is your cursor? At the end of your document? No problem. At the beginning or somewhere in between the beginning and end? That's where the real problem comes in. There is no cursor selection in the PM AppleScript dictionary. Without one the best options would be a script that take the URL and put them either at the beginning or the very end of the document. Wayne -- Music is spiritual. The music business is not. - Van Morrison Live DAT Music Page: http://homepage.mac.com/wayneb/ PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html Music Currently playing:
Re(2): Strange Windows
Received from: Wayne Brissette At: 4:31 pm (GMT) on Mon, Mar 24, 2003 I will reiterate my concern with people placing scripts inside the PowerMail package in Mac OS X. If people put scripts inside (/User// Mail/PowerMail Files 4/PowerMail Scripts/) instead of the PowerMail package, then there is less of a chance of a script getting deleted accidentally when you upgrade PowerMail versions. I agree, and I place all non-'PM standard' scripts into my user scripts folder. Still, things can get deleted by mistake, as we all know, and this safety net is a good idea. As to the script. Just copy this into Script Editor, save it with a name of ___!NoSuchScript. Many thanks for that Wayne. Could it actually have *been* any simpler? Rick --- G4/500 MHz (DP) :: OS 10.2.4 :: PM 4.1.2 :: 3 pane mode :: 768 MB RAM www.sharkattack.co.uk
Re(2): Strange Windows
Rick Lecoat [EMAIL PROTECTED] on Monday, March 24, 2003 stated: Received from: Leonard Morgenstern At: 4:02 pm (GMT) on Mon, Mar 24, 2003 It would be even better if a script could send you a warning message. To accomplish this, write a script with only one line, as follows: display dialog One of your mail filters has requested a script that does not exist. Name it !NoSuchScript. The exclamation mark sorts it to the top of your script list. Then you have a predictable result and will know what has happened. An EXCELLENT idea, Len; of course, my Applescripting abilities are no feeble and nonexistant that even this simple task is currently beyond me (well, okay if I had a few hours to get my head around the basics I could work it out, but I can't right now). Anybody care to step into the breach? Rick I will reiterate my concern with people placing scripts inside the PowerMail package in Mac OS X. If people put scripts inside (/User// Mail/PowerMail Files 4/PowerMail Scripts/) instead of the PowerMail package, then there is less of a chance of a script getting deleted accidentally when you upgrade PowerMail versions. As to the script. Just copy this into Script Editor, save it with a name of ___!NoSuchScript. -- Begin AppleScript Tell Application Finder display dialog One of your mail filters has requested a script that does not exist. end tell -- end AppleScript That's it. Wayne -- No people is wholly civilized where a distinction is drawn between stealing an office and stealing a purse. - Theodore Roosevelt Live DAT Music Page: http://homepage.mac.com/wayneb/ PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html Music Currently playing: The Jealous Sound The Foldout : 2003-03-13 Momo's (Austin, TX)
Re:macosxhints - An AppleScript to email Safari URLs with titles
On Fri, 21 Mar 2003 13:31:35 -0600, Wayne Brissette [EMAIL PROTECTED], allegedly wrote: http://www.macosxhints.com/article.php?story=20030318202727875#comments So normally I'm all for writing AppleScripts to solve problems. However this is one case where the recent AppleScript to mail a URL from Safari seem crude compared to the javascript solution... (FYI, I used it to send this email). Thanks again to Wayne and everyone else for all these additions! This one is great for originating a new mail from Safari! I'd like to *start* from a message I'm working on in PM, grab the URL of the top window of the default web browser, and paste it at the current insertion point of my message. Does anyone have a script that will do that? Much thanks, Chris Plummer === ** CHRIS'S UNPREDICTABLE and OCCASIONAL Newsletter for Mac Users ** (Not exclusively) For Mac Users in Beautiful Western Central New Jersey. Published Unpredictably approximately every two weeks! Check the UNPREDICTABLE archive - http://www.unpredictablemac.com ===
Re(2): Strange Windows
Received from: Leonard Morgenstern At: 4:02 pm (GMT) on Mon, Mar 24, 2003 It would be even better if a script could send you a warning message. To accomplish this, write a script with only one line, as follows: display dialog One of your mail filters has requested a script that does not exist. Name it !NoSuchScript. The exclamation mark sorts it to the top of your script list. Then you have a predictable result and will know what has happened. An EXCELLENT idea, Len; of course, my Applescripting abilities are no feeble and nonexistant that even this simple task is currently beyond me (well, okay if I had a few hours to get my head around the basics I could work it out, but I can't right now). Anybody care to step into the breach? Rick --- G4/500 MHz (DP) :: OS 10.2.4 :: PM 4.1.2 :: 3 pane mode :: 768 MB RAM www.sharkattack.co.uk
Re: Strange Windows
Received from: Daniel Ross At: 9:17 pm (GMT) on Mon, Mar 24, 2003 Opps! I found that somehow I had changed a condition on a filter. It was my fault. The window comes up because I had somehow changed an Action in a filter to execute script and the script was delete immediately. Sorry. This raises a point of general safety; If you have a filter set to run an applescript and then that applescript is then removed from the scripts folder (perhaps because it was a 3rd party one) then the filter, not finding the script it is looking for, will default to the first applescript in the list, sorted alphanumerically. Unfortunately, under a basic installation, this is Delete Message Immediately, and so it is possible that by removing one applescript from your setup, one or more filters could get changed to delete mail irrevocably, without you necessarily being aware of it. This is obviously not ideal, and the best option to prevent it is to simply rename the Delete... script so that it is no longer first in the list. (I renamed mine to be X-Delete message immediately). Under a standard installation, the first script in the list will then be Delete v-card attachments, which is much less dangerous should it accidentally get selected as described above. Cheers Rick --- G4/500 MHz (DP) :: OS 10.2.4 :: PM 4.1.2 :: 3 pane mode :: 768 MB RAM www.sharkattack.co.uk
Re(5): HTML text can't be marked, isn't quoted in replies...?
At 23 mars 2003, 12.45 CET, Wayne Brissette [EMAIL PROTECTED] wrote: Max Gossell [EMAIL PROTECTED] on 3/23/03 at 9:10 AM stated: Is there any significant difference to the one or the other? I just happened to pick the one by Eric Tyson, and it works swell. But all this discussion about Wayne's BBEdit version has made me wonder -- does it work any extra terrestrial wonders...? /Max G No! Just a variation of the same theme. I personally think the BBedit version does a better job at trying to render the text more like the HTML, but that's subjective. Wayne I just made a test with a complex commercial html junk mail, and I agree with you. The BBEdit version did a much better job and it also managed to get the Swedish special characters å, ä ö right (apart from when capitalized). Tyson's script left a lot of empty line brakes (Enter) and in combination with the untranslated special characters it makes the message quite unreadable. If you just get a simple html message in English from a friend, I think Eric Tyson's script is smoother though, as you wont see it open any other app -- it just happens. I'm a bit annoyed that the BBEdit script opens BBEdit without closing it. I can understand BBEdit must be opened to do its job, but couldn't you add some kind of if string to the script that says if BBEdit already is running, then leave it running. If it's not running, open it and have it do its task and the close it after job done. Max G PS: Below I've pasted samples to show how the two script translated the same Swedish junk mail, should anybody be interested. --- HTML Cleanup (BBEdit/Wayne Brissette)---: Document Title: MALMO.COM - Medlemsbrev body {font-family:Verdana,Arial,Helvetica,Sans-Serif} #RubrikWhite {font-size:9pt;color:#FF;font-weight:bold} #RubrikBlack {font-size:9pt;color:#00;font-weight:bold} #RubrikRed {font-size:9pt;color:#99;font-weight:bold} #HeadlineWhite {font-size:12pt;color:#FF;font-weight:bold} #HeadlineBlack {font-size:12pt;color:#00;font-weight:bold} #HeadlineRed {font-size:12pt;color:#99;font-weight:bold} #HeadlineYellow {font-size:12pt;color:#FFCC00;font-weight:bold} #InfoWhite {font-size:8pt;color:#FF} #InfoBlack {font-size:8pt;color:#00} #InfoRed {font-size:8pt;color:#99} #Text7 {font-size:7pt} Om du inte kan läsa vårt = brev, gå till: _http://www.malmo.com/swedish/medlemsbrev/utskick=5F03032= 4.htm_ [IMAGE] VINN biljetter till Joseph! [IMAGE] =09=09 DAGS OUML;R NYPREMIAUML;R! _ Publiken kräver - tillbaka i Malmö! JOSEPH AND THE AMAZING TECHNICOLOR DREAMCOAT _ 35.000 har redan sett Joseph! Succen fortsätter 29 mars! Var med = och tävla! VINN 2 = BILJETTER TILL FOUML;RESTAUML;LLNINGARNA: 29/3 KL 16.00 AMP; 19.30 19/4 KL 16.00 AMP; 19.30 100 KR = RABATT! SOM MALMOUML;AMBASSADOUML;R = PARING; MALMO.COM FARING;R DU AUML;VEN 100 = KR RABATT FOUML;LJANDE = FOUML;RESTAUML;LLNINGAR: 4/4 KL = 19.30 12/4 KL 19.30 19/4 KL 16.00 19/4 KL 19.30 20/4 KL 16.00 25/4 KL 19.30 9/5 KL 19.30 OM = MUSIKALEN Berättelsen om Josef och hans bröder finns = att läsa i Första Moseboken kapitel 37. Senast = såg över 100.000 besökare de 131 = föreställningar och det var den första musikal i Sverige som = använde rörligt ljus. Joseph är den första musikal som den = framgångsrika duon Andrew Lloyd Webber och = Tim Rice skrev tillsammans. Läs mer om musikalen: _Klicka här_ _ BLI MALMOUML;AMBASSADOUML;R OCH GARING; IN OCH = TAUML;VLA_ [IMAGE] [IMAGE][IMAGE] Detta brev skickas till = dig eftersom du använt någon av MALMO.COM's tjänster. Vill du avsluta våra utskick till dig - _klicka här_! This letter is sent to you because you have used one of = MALMO.COM's services. If you want to unsubscribe and not receive any more letters = - _click here_ ! Mvh, malmo.com _ www.malmo.com_ =09=09=09 --- END HTML Cleanup (BBEdit / Wayne Brissette) --- --- html Cleanup (textSOAP or AppleScript / W. Eric Tyson) ---: MALMO.COM - Medlemsbrev body {font-family:Verdana,Arial,Helvetica,Sans-Serif} #RubrikWhite {font-size:9pt;color:#FF;font-weight:bold} #RubrikBlack {font-size:9pt;color:#00;font-weight:bold} #RubrikRed {font-size:9pt;color:#99;font-weight:bold} #HeadlineWhite {font-size:12pt;color:#FF;font-weight:bold} #HeadlineBlack {font-size:12pt;color:#00;font-weight:bold} #HeadlineRed {font-size:12pt;color:#99;font-weight:bold} #HeadlineYellow {font-size:12pt;color:#FFCC00;font-weight:bold} #InfoWhite {font-size:8pt;color:#FF} #InfoBlack {font-size:8pt;color:#00} #InfoRed {font-size:8pt;color:#99} #Text7 {font-size:7pt} Om du inte kan lauml;sa varing;rt = brev, garing; till: http://www.malmo.com/swedish/medlemsbrev/utskick=5F03032= 4.htm nbsp; VINN biljetter till Joseph! nbsp; nbsp;
viewing html...
This might be obvious, but it was an accidental discovery for me... If you click the globe icon in an html message instead of holding it down as I was to choose either view html or view in browser, the message automatically gets viewed in your browser. -- As long as people will accept crap, it will be financially profitable to dispense it. -- Dick Cavett
Re: Can't Compact DB, etc.
Sun, Mar 23, 2003 2:39 PM [EMAIL PROTECTED] Andy Fragen said: Quit PM and restart with the Command-Option pressed. Check off the first 4 checkboxes for some database repair. Thanks for the help -- problems solved. I should have known, but I think some of those selections used to be on the File menu and I couldn't figure out where they had gone.