Thanks Alex for helping with this.
I have a list item setup in my Maxthon command list to call the
script:
*Exec
MoreCommandsAsScript
.news_paster

However I get this error:

Cannot access text on clipboard

Error occurred near line 9 which contained:
Clip.ToFile(?"C:\Documents and Settings\Kids\My Documents\News\" ++ sSubDomain 
++ sEditedSubDomain ++ ?".txt")

Press Cancel to end all running scripts.


Friday, March 4, 2005, 11:56:41 PM, you wrote:
Alex> Local sURL, sSubDomain, sEditedSubDomain
Alex> Clip.ClearClipboard
Alex> Win.Keys(?"^c")
Alex> sURL             = BrowserURL
Alex> sSubDomain       = BrowserSubDomain
Alex> sEditedSubDomain = ReplaceChars(Select(Clip, 15), ?":", ?"_")
Alex> sEditedSubDomain = ReplaceChars(sEditedSubDomain, ?'"', ?"-")
Alex> ; paste clipboard to file
Alex> Clip.ToFile(?"C:\My Documents\News" ++ sSubDomain ++ sEditedSubDomain ++ 
?".txt")
Alex> ; paste URL to file
Alex> Exec.ToFile("C:\My Documents\News" ++ sSubDomain ++
Alex> sEditedSubDomain ++ ?".txt", ?"[" ++ sURL ++ ?"]")



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to