MACSCRPT Archives

June 2007

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:
Andreas Kiel <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sat, 2 Jun 2007 17:19:29 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (100 lines)
Thanks so much Ed for spending the time to test it.
If I run your set up it works smoothly, if I use my real files it won't.
Maybe it has something to do with with the block size the file is  
growing.

Kind regards
Andreas

On 31.05.2007, at 04:37, Stockly, Ed wrote:

> Here's the test I ran.
>
> I pasted this into script editor, and started running it.
>
> ------------------
> set myFolder to path to startup disk
> set fileName to "Sequence 1  Copy_070530035437.mov"
> set myFile to ((myFolder as string) & fileName)
>
> try
>     open for access file myFile with write permission
>     set openFile to the result
> on error
>     close access file myFile
>     open for access file myFile with write permission
>     set openFile to the result
> end try
> set x to 1
> set eof of openFile to 1
> repeat
>     set x to x + 1
>     get eof of openFile
>     write x as string to openFile
> end repeat
> ------------------
>
> I then pasted this into Script Debugger and started running it.
>
> ------------------
> set myFolder to path to startup disk
> set fileName to "Sequence 1  Copy_070530035437.mov"
> set myFile to ((myFolder as string) & fileName)
> get eof of file myFile
>
> set oldSize to 0
> repeat
>     delay 2
>     try
>         set curSize to get eof of file myFile
>         log curSize
>         if curSize is oldSize then
>             exit repeat
>         end if
>         set oldSize to curSize
>     on error errText
>         log {"error @ file size check run stat script -> user  
> canceled",
> errText}
>         display dialog errText
>         exit repeat
>     end try
> end repeat
> ------------------
>
>
> The result was no errors, and it faithfully logged the growing file  
> size.
>
> get eof file "Jaguar:Sequence 1  Copy_070530035437.mov"
> -->    425.0
> (*425.0*)
> get eof file "Jaguar:Sequence 1  Copy_070530035437.mov"
> -->    467.0
> (*467.0*)
>
> When I stopped the Script Editor process it gracefully exited as  
> expected.
>
> Is it possible there is a return character or some other odd  
> character in
> your original file name?
>
>>>>> Here the original(not working) file name and path:
>   "/Volumes/SATA_465_01/FCP6 test folder/Sequence 1
> Copy_070530035437.mov"
>
> HTH
>
> ES

Andreas Kiel
Spherico
Nelkenstr. 25
D-76135 Karlsruhe
Tel.: +49 (0)721 183 9753
eFax: +1 650 897 8094

eMail: [log in to unmask]
http://spherico.com/filmtools -- workflow tools for FCP

ATOM RSS1 RSS2