Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > textClipping Text Inaccessible
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 10th August 05:09
al hatch
External User
 
Posts: 1
Default textClipping Text Inaccessible



Why does AppleScript treat textClippings differently from other files?
Or does a textClipping not have an end-of-file marker?

The script below will display a selected file (RTF, text, HTML, etc.) as
text. But not the text from a .textClipping. Moreover, it returns an error.

tell application "Finder"
set theFile to the selection
set fileRef to (open for access theFile as alias)
set TextContents to (read fileRef as text before return)
display dialog result
on error x
if x ‚ "End of file error." then display dialog x
close access fileRef
end tell

Al Hatch
  Reply With Quote


  sponsored links


2 10th August 05:09
gnarlodious
External User
 
Posts: 1
Default textClipping Text Inaccessible



set x to (choose file)
tell application "Tex-Edit Plus" to open x

-- Gnarlie

Entity Al Hatch spoke thus:
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666