1

I have written an AppleScript to grab a users Facebook profile picture (using Curl) store it on their machine and set it as their User Picture in OS X. This picture: enter image description here

I am having trouble setting the picture, I've tried

tell application "System Events"
    set the picture path of current user to alias downloadedpath
end tell

But am having no luck! I am defining the path using colons, an example value of downloadedpath would be "Macintosh HD:Users:jacoblukewood:Desktop:profile.jpg"

How would I use this, I plan to use this on 10.8 and 10.9.

Jacob Wood
  • 209
  • 3
  • 13

1 Answers1

0

My guess is because you are using Old:Mac:Format for your path, instead of the industry standard path/to/foo (POSIX). Is there any particular reason that you are using Ye Olde Mac Format?

XQLRSZ
  • 142
  • 1
  • 2
  • 14
  • From memory (this was 1.5 years or so ago) the POSTIX format was not working in AppleScript and you had to use the Silly:Old:Format. – Jacob Wood Apr 21 '15 at 09:30
  • I saw the date before I posted, but I still thought POSIX was the standard. I think POSIX was used by the OS. – XQLRSZ Apr 21 '15 at 13:21