Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Ok, so the error is in the run applescript action just like it says. You used 2 run applescript actions. The first for dropbox and the second for the mailing. Now you need to find out in which one of those the error occurs. Hint:
you can also do error checking in those 2 run applescript actions. Start with the first one. Do the same for the second one.

Code:
on run {input, parameters}
	try
	set DBText to (the clipboard as text)
	on error errMsg number errNum
		display alert errMsg & space & errNum message ¬
			"An error occured" as warning --giving up after 10
	end try
        try
	set DBURL to "http://dl.dropbox.com/u/xxxxxxxxx/"
	on error errMsg number errNum
		display alert errMsg & space & errNum message ¬
			"An error occured" as warning --giving up after 10
	end try
try
	set FName to text ((offset of "Public:" in DBText) + 7) thru -1 of DBText
	on error errMsg number errNum
		display alert errMsg & space & errNum message ¬
			"An error occured" as warning --giving up after 10
	end try
try
	set input to DBURL & FName
	on error errMsg number errNum
		display alert errMsg & space & errNum message ¬
			"An error occured" as warning --giving up after 10
	end try
try
	return input
	on error errMsg number errNum
		display alert errMsg & space & errNum message ¬
			"An error occured" as warning --giving up after 10
	end try
end run

Going to take a little break now. It's ten to four in the morning over here. I'll look into the log command to see if it's usable for debugging.
 
error message p2

hope you weren't up late just for me!

Right I ran your code in both the workflow itself and on its own and I get the same message.

The workflow (archive email etc) does work perfectly, its just getting it to work by being fired up from a script run at the end of the compressor droplet.

If you see the third attachment I added the {input, parameters} to the run line and that gave me the same error code.

This is the only bit that's not working for some reason, this tiny code to launch my edit assist app (which is just the part 2 workflow saved as an app)
Can i change the tell application line to tell it to launch the workflow, what would that be?

Thanks so much
Jonny
 

Attachments

  • Screen shot 2012-04-13 at 09.41.16.png
    Screen shot 2012-04-13 at 09.41.16.png
    30.8 KB · Views: 87
  • Screen shot 2012-04-13 at 09.41.21.png
    Screen shot 2012-04-13 at 09.41.21.png
    23.6 KB · Views: 73
  • Screen shot 2012-04-13 at 09.43.09.png
    Screen shot 2012-04-13 at 09.43.09.png
    50.3 KB · Views: 91
Can i change the tell application line to tell it to launch the workflow, what would that be?

You can but before that could you try this as compressor droplet script(remember to save as application!) :

Code:
on open (theFiles)
repeat with thefile in theFiles
display dialog thefile
end repeat
tell application "EditAssist" to launch
end open

For the workflow :
Save your EditAssist Automator app as an Automator workflow (.workflow file)

Code:
-- change line below to where you saved your .workflow
set workflowpath to "Macintosh HD:Users:martin:Desktop:Example.workflow"
set qtdworkflowpath to quoted form of (Posix path of workflowpath)
set command to "/usr/bin/automator -v " & qtdworkflowpath
set output to do shell script command

Also put the above code between an on open (theFiles) handler. First run it without the handler. Good luck.

Try to run the worflow code from scripteditor as well you'll get some results in the result pane.
Can you post the code that's behind the AppleScript Error (null) first tumbnail.
 

Attachments

  • Afbeelding 1.png
    Afbeelding 1.png
    89.4 KB · Views: 94
Last edited:
hmmm

The second code worked fine, and previous codes have worked fine.

I think the real problem now is that Apple Compressor 3.5 is not executing the script when it finishes encoding. I'm trying to find out why this is the case.

As suggested here http://www.proactiveinteractive.com/software/compressor/index.php

I tried saving it as an app with the 'on open (theFiles)' handlers but it still isn't working. Every script i write works just fine 'outside' of the compressor section of this ordeal. but i can't seem to get it hold together!

Think this is a compressor specific problem (which is why i had tried to do this part with folder action code before)
 
Unfortunately I can't test this in real life with an example. Compressor 2 on my Leopard install (ppc hardware) runs just fine but qmasterd process crashes within seconds and on my Tiger install it's the other way round.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.