Skip to main content
Participant
January 12, 2013
Question

AppleScript / saving file to a relative path

  • January 12, 2013
  • 1 reply
  • 1528 views

Hello everybody,

I would like to make a script that saves current file to a relative path. For example: I have a psd opened file (that is in pictures/01/image01.psd) and I need to save it one level up as a JPEG ( pictures/image01.psd).

This is what I've tried, however, the result is that the file is saved in the root of Photoshop - in applications folder:

tell application "Adobe Photoshop CS6"

          set myFile to "./"

          set myOptions to ¬

                    {class:JPEG save options, embed color profile:false, format options:standard, matte:background color matte} ¬

 

  save current document in file myFile as JPEG with options ¬

  myOptions appending no extension without copying

end tell

Thanks in advance

This topic has been closed for replies.

1 reply

Inspiring
January 12, 2013

There are several ways in which you can do this… Do you need 1 level up no matter where or do you want your pictures folder…

AlexBabicAuthor
Participant
January 12, 2013

I need it 1 level up no matter where - since there will be different folders.

Thanks!