MACSCRPT Archives

December 2010

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bill Steele <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 6 Dec 2010 17:35:56 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
On Dec 6, 2010, at 4:57 PM, Mark Lively wrote:

> On Dec 6, 2010, at 2:36 PM, Bill Steele wrote:
> 
>> I have a script that does some text processing, saves a file, then opens the file in Tex-Edit Plus. Since I upgraded to Snow Leopard that no longer works. Tex-Edit Plus just opens an empty window.
>> 
>> So I turned on Record, used Tex-Edit to open a file. Got the same thing I already have in my script:
>> 
>> tell application "Tex-Edit Plus"
>> 	activate
>> 	open file "Bill'sHD:Users:billsteele:Desktop:foo.txt"
>> end tell
>> 
>> But when I run the recorded script, it opens the same empty untitled window. (Note: Tex-Edit preferences are set to *not* open an empty window on activation.)
>> 
>> This was in the new "Applescript Editor."  I still have the old Script Editor, but it doesn't work in that either, and Script Editor tends to quit now and then. 
>> 
>> Tried the same procedure on another machine running Leopard, and it works properly.
>> 
>> Suggestions?
> 
> 
> Have you tried with posix paths or aliases?
> 
> -Mark


Aliases yes, posix paths no.  We'll try that tomorrow morning. But either way, what bugs me is that it won't play back what it recorded. 

Bill Steele
[log in to unmask]

ATOM RSS1 RSS2