Page 2 of 2

Re: Problem with RevCopyFile

Posted: Wed Jan 19, 2011 12:39 pm
by jmburnod
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

Re: Problem with RevCopyFile

Posted: Wed Jan 19, 2011 1:35 pm
by bn
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

Re: Problem with RevCopyFile

Posted: Wed Jan 19, 2011 1:41 pm
by bn
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

Re: Problem with RevCopyFile

Posted: Wed Jan 19, 2011 2:37 pm
by jmburnod
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

Re: Problem with RevCopyFile

Posted: Wed Jan 19, 2011 3:26 pm
by bn
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