Skip navigation

Update to Format a link and an Applescipt for posting

155 Views 1 Reply Latest reply: Nov 11, 2009 12:21 PM by rccharles RSS
rccharles Level 5 Level 5 (5,140 points)
Currently Being Moderated
Nov 11, 2009 12:19 PM
I have an update to the script in Format a link and an Applescipt for posting.
http://discussions.apple.com/thread.jspa?threadID=2223315&tstart=0

Found a bug in my applescript program. The most series one is that I left out the escape character which is the backslash ( \ ) .The changes are prefixed by the data, Nov 7, 2009.

The code will be in my second post.

I included a copy of the test case for alter clipboard, my applescript program.
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 600px; height: 300px;
color: #000000;
background-color: #FFEE80;
overflow: auto;"
title="">1234567890123456789012345678901234567890
|
 |
  |
   |
    |
     |
      |
       |
        |
         |
          |
          ||
          | |
          |  |
          |   |
          |    |
          |      |
1234567890123456789012345678901234567890
,
.
/
<
>
?
;
'
:
"
'
[
]
\
{
}
|
`
-
=
~
!
@
#
$
%
^
&
*
(
)
_
+
,,
..
//
<<
>>
??
;;
''
::
""
''
[[
]]
\\
{{
}}
||
``
--
==
~~
!!
@@
##
$$
%%
^^
&&
**
((
))
__
++
,,,
...
///
<<<
>>>
???
;;;
'''
:::
"""
'''
[[[
]]]
\\\
{{{
}}}
|||
```
---
===
~~~
!!!
@@@
###
$$$
%%%
^^^
&&&
***
(((
)))
___
+++
,,,,....////<<<<>>>>????;;;;''''::::""""''''[[[[]]]]\\\\{{{{}}}}||||````----==== ~~~~!!!!@@@@####$$$$%%%%^^^^&&&&****(((())))____++++
,abc,.abc./abc/<abc<>abc>?abc?;abc;'abc':abc:"abc"'abc'[abc[]abc]\abc\{abc{}abc} |abc|`abc`-abc-=abc=~abc~!abc!@abc@#abc#$abc$%abc%^abc^&abc&*abc*(abc()abc)_abc_ +abc+
,,abc,,..abc..//abc//<<abc<<>>abc>>??abc??;;abc;;''abc''::abc::""abc""''abc''[[a bc[[]]abc]]\\abc\\{{abc{{}}abc}}||abc||``abc``--abc--==abc==~~abc~~!!abc!!@@abc@ @##abc##$$abc$$%%abc%%^^abc^^&&abc&&**abc**((abc(())abc))__abc__++abc++
1234567890123456789012345678901234567890
Printable characters. These are set to blank: 
127 -- control character
202 -- nonbreaking space. becomes a space.
1234567890123456789012345678901234567890
 !"#$%&'()*+,-./
0123456789:;<=>?
@ABCDEFGHIJKLMNO
PQRSTUVWXYZ[\]^_
`abcdefghijklmno
pqrstuvwxyz{|}~ 
ÄÅÇÉÑÖÜáàâäãåçéè
êëíìîïñóòôöõúùûü
†°¢£§•¶ß®©™´¨≠ÆØ
∞±≤≥¥µ∂∑∏π∫ªºΩæø
¿¡¬√ƒ≈∆«»… ÀÃÕŒœ
–—“”‘’÷◊ÿŸ⁄€‹›fifl
‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ
ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ
1234567890123456789012345678901234567890
Try trailing spaces.
 |
|
| | 
 | |
  |  |
  
 |
|
| | 
 | |
  |  |
  
 
  
   
   | 
   |  
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1234567890123456789012345678901234567890
Notes: 
 • Muliple returns necessitate a blank being inserted in the lines.
 • Tabs get changed to blanks
 • ASCI 202 -- nonbreaking space. becomes a space.
 • The last return gets deleted.
differences begin here:
 

 
1234567890123456789012345678901234567890
         <<<
         <<<
         <<<
1234567890123456789012345678901234567890
asci 202 nonbreaking space
   
The end.
 

</pre>
iMac G3 600, Mac OS X (10.4.11)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.