🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #1970

Photoshop CS saving as "Untitled-1", but to right directory?

#1970
From: Mike_LeBeau
Date: Thu, 01 Jul 2004 21:31
12 lines
1744 bytes
I just upgraded from PS7 to CS, and in changing over an Applescript I've been writing which worked perfectly in 7.0, I find the only thing that doesn't work in CS is that instead of saving an image to the filename I supply before it goes in to script Photoshop, it saves it to the correct folder but as "Untitled-1.psd". That is, I tell the script "Make Button", it asks me for a file location (choose file with prompt...) and name, and I give it one, then it goes into Photoshop, is supposed to make the button, and save it in that location. The code roughly looks like this:

set buttonFilespec to (choose file name with prompt "Please specify where to save the new button.")
CreateButton()
tell application "Adobe Photoshop CS"
  save current document in buttonFilespec
  close current document
end tell

I've left out some minor details but nothing which should matter in this case. CreateButton is a function that goes through the button creation process and ends with the button finished, in the front window of Photoshop. Any thoughts, anyone? Thanks!

Mike
Technical Details
Message-ID: <3bb4dfbf.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,52f9006dc3b18636,start
X-Google-Attributes: gidf5839,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Mike_LeBeau@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.photoshop.scripting
Subject: Photoshop CS saving as "Untitled-1", but to right directory?
Message-ID: <3bb4dfbf.-1@webx.la2eafNXanI>
Date: Thu, 1 Jul 2004 14:31:06 -0700
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit