• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Insert clipboard into text.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Insert clipboard into text.


  • Subject: Insert clipboard into text.
  • From: Rachel Cogent <email@hidden>
  • Date: Wed, 12 Sep 2001 17:52:43 -0600

I am attempting to insert a CR and the contents of the clipboard into every
file in the folder.
Here is an approximation:

tell application "Finder"
set foo to item 1 of selection
repeat with bar from 1 to (count files in foo)
set fileLocation to file bar of foo
tell window 1 of application "Tex-Edit Plus"
open fileLocation
set character 0 of line 6 to return
set insertion point to character 0 of line 6
paste
close window 1 saving no
end tell
end repeat
end tell

What am I doing wrong? I tried everything I could think of.

http://www.gnarlodious.com


  • Prev by Date: file type
  • Next by Date: Re: file type
  • Previous by thread: Re: file type
  • Next by thread: Insert clipboard into text.
  • Index(es):
    • Date
    • Thread