Problem with RevCopyFile

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Problem with RevCopyFile

Post by jmburnod » Wed Jan 19, 2011 12:39 pm

Hi Bernd,

Yes. The link work, getIconToFile work and getShellIcns work also.

I tried this

Code: Select all

on ShInPrev
   put fld "fmyAS" into appleScriptInit
    do appleScriptInit as "applescript"
end ShInPrev
with this content in fld "fmyAS"
set theFile to "/Applications/ Jeux/Chess.app/Contents/Resources/chess.icns"
tell application "Preview"
open theFile
activate
end tell
The script open "Aperçu" but no image come

All the best

Jean-Marc
P.S. I need times to think about the moon
https://alternatic.ch

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Problem with RevCopyFile

Post by bn » Wed Jan 19, 2011 1:35 pm

Hi Jean-Marc,
set theFile to "/Applications/ Jeux/Chess.app/Contents/Resources/chess.icns"
there is a space before Jeux which probably does not belong there. Try this without the space.

I tried again with the script and a valid path and it works

by the way, we started this conversation here
http://forums.runrev.com/phpBB2/viewtop ... 177#p30177

Kind regards
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Problem with RevCopyFile

Post by bn » Wed Jan 19, 2011 1:41 pm

Hi Jean-Marc

I moved your post and my reply to here:
http://forums.runrev.com/phpBB2/viewtop ... 231#p30231

lets continue to discuss it over there.

Kind regards

Bernd

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Problem with RevCopyFile

Post by jmburnod » Wed Jan 19, 2011 2:37 pm

Hi Bernd,

I tested with my Imac intel duo Core and it work fine

It is different on my Powerbook G4 10.4.2 (first tested)

Curiously, the getIconPaths via Shell return a space before "jeux".
I looked at the name of the folder and it have effectly a space.
I deleted it but no change
I restart the computer, the getIconPaths via Shell return always a space before "Jeux" (the name of the folder is "Jeux")

With others folder like adressbook, no space before but no image come

Best

Jean-Marc
https://alternatic.ch

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Problem with RevCopyFile

Post by bn » Wed Jan 19, 2011 3:26 pm

Hi Jean-Marc,

I will answer here
http://forums.runrev.com/phpBB2/viewtop ... f=8&t=6523
Please lets continue over there.

Kind regards

Bernd

Post Reply