Page 1 of 1
revCopyFile Uses AppleScript?!
Posted: Sun Jun 24, 2012 4:24 pm
by rrBUSS9EE
Hello All,
This is obviously a huge problem with apps destined for the Mac App Store. Is there an external available?
Will RunRev be addressing this soon?
Thanks.
Re: revCopyFile Uses AppleScript?!
Posted: Sun Jun 24, 2012 7:05 pm
by Dixie
Err... Why do you think that revCopyFile employs AppleScript ?
Dixie
Re: revCopyFile Uses AppleScript?!
Posted: Sun Jun 24, 2012 7:22 pm
by rrBUSS9EE
Because every time I execute it in a sandboxed app I see a disallowed appleEvent sent to the Finder.
Re: revCopyFile Uses AppleScript?!
Posted: Mon Jun 25, 2012 12:06 am
by shaosean
Dixie wrote:Err... Why do you think that revCopyFile employs AppleScript ?
Code: Select all
if the platform is "MacOS" then
if "applescript" is in the alternateLanguages then
if there is a file pDestFile then delete file pDestfile -- overwrite before copying
do revAppleScriptFull("copyFile",pSrcFile,pDestFile) as "applescript"
if word 1 to 2 of the result is "document file" then
#Copy successful so don't return anything
return empty
else if the result is not "compile error" and the result is not "execution error" then
return createCopyFileResult(the result, pDestFile)
else
return the result
end if
else return "Error: AppleScript not installed"
Re: revCopyFile Uses AppleScript?!
Posted: Tue Jun 26, 2012 6:47 am
by Dixie
shaosean...
We live and learn... I did today, anyway..
be well
Dixie