Need Help Stay-Open Script

Hello

Could you please return the output of the log file, It may be easier to understand what is going on then.

Best Regards

McUsr

Oh ya. log is below along with two images. a start and end image.

Start
http://dl.dropbox.com/u/550920/Screen%20shot%202010-07-04%20at%205.18.00%20PM.png

End
http://dl.dropbox.com/u/550920/Screen%20shot%202010-07-05%20at%2012.44.39%20AM.png


Starting the Audio-applet.
Had  folders from last run.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.


Hello.

Please grab the source from the post [b]#9[/b ]above, I have updated it, and do come back with the output of the logfile again.
It’s interesting - and kind of peculiar. I think there is some errors with the file paths. but I don’t know exactly what is wrong. But I don know that I’ll fix it.

Best Regards

McUsr.

Hello.

It is still a tad early. Please download the code again if you have already done so after my first post.

Best Regards

McUsr

i had a chance to run the applet this morning. The new error log is below.


Starting the Audio-applet.
No folders were saved last time, must get standard folders now.
this is the INFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:IN:
this is the OUTFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:Out:
this is the DONEFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:IN_DONE:
this is the INFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:IN:
this is the OUTFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:Out:
this is the DONEFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:IN_DONE:
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.


Hello.

I have updated the script again to test for what happens with the statement that obviously must fail.

Please upload the log again when you have run it.

Best Regards

McUsr

i have another log for you. so the applet is running ok on your end?


Starting the Audio-applet.
No folders were saved last time, must get standard folders now.
this is the INFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:IN:
this is the OUTFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:Out:
this is the DONEFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:IN_DONE:
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.

Hello.

I have added even more logger statements. Today it should be interesting. Please post the next log.

Best Regards

McUser

I have a new log for you. I threw in a " beep 3 " argument at the end your script. i just wanted to have a audible notification at end of one cycle.


string
			--    return ((characters -(x - 1) thru -1 of the_filepath) as text)
			return ((characters 1 thru -(x + 1) of the_filepath) as text)
		end extract_shortname_from
		beep 3
	end script
end script

I didnt hear anything but when reading the log it looks like the applet did cycle through.

 
Starting the Audio-applet.
No folders were saved last time, must get standard folders now.
this is the INFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:IN:
this is the OUTFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:Out:
this is the DONEFOLDERPATH: Macintosh HD:Users:mychalherron:Public:C2W Audio Processing:IN_DONE:
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.

I think I know what your problem is.

I thougth is was quite rare for files not having a name extension, but that isn’t so!

Please run this script on of of the files and post what you got!



tell application "Finder"
	set theSel to (get its selection)
	set theFile to item 1 of theSel as alias
end tell
tell application "System Events"
	set finfo to properties of theFile
	
	set ftype to type identifier of finfo
	display dialog ftype
end tell

Best Regards

McUsr

I ran the com script before the stay open applet. i am not sure if that is correct. in that order it did
seem to fix what ever issues we are with the stay open script.


Starting the Audio-applet.
Had  folders from last run.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.
I have entered the Idle handler.
There were nothing to clean up, checks if we shall start the batch processor.
We shall start the batch processor.

what script did you run did you say? :slight_smile:

The script from 2 posts above where for finding the uti, or the latest version in post #9?

Best Regards

McUsr

I ran the script from post 30 and then post 9 applet.

Hello.

Could you please use that script for a couple of days, have your computer turned off and on, and reestablish the network connection during that period, or wait until you have done all those steps, and when the applet are running after this, come back and tell me if it runs successfully?

There is something I’m not quite sure if I understand here. So I won’t guarantee it to work continuously even if it appear to work now. See this post about a problem concerning having “Logs” as part of path

Best Regards

McUsr

Thank you again for all your hard work. I really do appreciate everything. I restarted and left the applet running for the better part of the week. When i checked the OUT and DONE folders there was nothing in them. I also tried the applet on a G5 and my girlfriend Macbook Pro. both cases returned the same result. Do you have any ideas?

I thought maybe it would be easier to locate the issue if the script is split up. just to make sure each module is working.

Log
http://dl.dropbox.com/u/550920/Log'N%20Script%205.txt

If things are working for you on your end. you could post or E-Mail your applet just to make sure it isnt something i am doing on my end.

Hello Myke.

Could you please supply me with the output of the script I gave you from post number 30.

Lets see the output of that and lets start from there.
That is: select an mp3 file and run the script and take a note of the info returned.
Do the same with a “Log file” from the OUTPUT folder.

Return me the info without and regards to wether the app suddenly appears to work or not!
I have to make a work around.

Best Regards

McUsr

I am not exactly sure what you mean by that. It doesnt give me a text log. When i run the script it comes up with a prompt that says “com.apple.application-bundle” and gives me a “cancel” or “OK” option. If i press ok nothing happens. quitting the script returns no log. if wait too long to press ok after opening the script. i get a error “System Events got an error: AppleEvent timed out”. this is quite obvious because of the timing out.

you can find link to that below. keep in mind the log is very long so i decided to post the file.

Log file link:
http://dl.dropbox.com/u/550920/Log'N%20Script%205.txt

Hello.

Take the script from post #30, select an mp3 file in finder and run it. Take a not of what it returns.
Then select your or one of your Log - files and do the same, then post the result.

Not that it matters any more, but just for the record:

I’ll rewrite the applet to ensure that it works at all times.

Best Regards

McUsr

Hello.

I have rewritten the applet to use Unix functions for finding files etc. I can’t remove Finder totally before you give me a listing of your mp3 files. You must try it even if it won’t work properly, it will show us if we can identify the different states of your disk. - I expect the rewritten part of it to work properly.

Please enter the following command in your in folder from a terminal window.

ls -l |head 10

I also noticed that you had specified the same path for both done and out folder, it didn’t matter much as long as the applet doesn’t work, but it will make your whole computer stall, when it works.

I’m suspecting that the problems we are having is that we are having trouble with Finder, because the directories are shared, and have so far rewritten some parts of it, but don’t expect it to be fully operational before I have had the file-list so I know how to get at the mp3 files from Unix.

Best Regards

McUsr.

i received this responds
macbook-pro-2:~ user$ ls -l |head 10
head: 10: No such file or directory