revCopyFile Uses AppleScript?!

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

revCopyFile Uses AppleScript?!

Post by rrBUSS9EE » Sun Jun 24, 2012 4:24 pm

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.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: revCopyFile Uses AppleScript?!

Post by Dixie » Sun Jun 24, 2012 7:05 pm

Err... Why do you think that revCopyFile employs AppleScript ?

Dixie

rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

Re: revCopyFile Uses AppleScript?!

Post by rrBUSS9EE » Sun Jun 24, 2012 7:22 pm

Because every time I execute it in a sandboxed app I see a disallowed appleEvent sent to the Finder.

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: revCopyFile Uses AppleScript?!

Post by shaosean » Mon Jun 25, 2012 12:06 am

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"

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: revCopyFile Uses AppleScript?!

Post by Dixie » Tue Jun 26, 2012 6:47 am

shaosean...

We live and learn... I did today, anyway..:-)

be well

Dixie

Post Reply