• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Photoshop 7.0 Save As Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Photoshop 7.0 Save As Problems


  • Subject: Photoshop 7.0 Save As Problems
  • From: "Steve Suranie" <email@hidden>
  • Date: Wed, 7 Jan 2004 10:57:28 -0500
  • Thread-topic: applescript-users digest, Vol 3 #2314 - 10 msgs

Hi all:

I am trying to open a file in PS 7, resizing it and then doing a save as to a different location (on the same server) and then renaming the file. Everything works fine except for when I go to rename it, I get an AppleScript error, "Finder got an error. The operation could not be completed." When I go to the newly created file I can manually rename it, I can move it into other folders, I can replace an older version of the new file but I cannot delete it, I get the file is in use error message. I am using OS X 10.2.8. My code is below. Any help would be appreciated.

Thanks

Steve

==========
Code follows
==========

on moveAsset(thisFilePath, thisMagPath, theHoldingPath, theArchivePath, theThumbnailPath, theWidth, theHeight)...

...tell applcation "Adobe Photoshop 7.0"...

...resize image current document width theWidthPixels height theHeightPixels
set myOptions to {class:JPEG save options, embed color profile:false, format options:standard, matte:background color matte}
save current document in (theThumbnailPath) as JPEG with options myOptions
close current document saving no
end tell
set theOldFilePath to (theThumbnailPath as string) & newFileName as alias
tell application "Finder"
set name of file theOldFilePath to thumbName
end tell
return thisFile
end moveAsset
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: curl vs. wget (was Re: script browsing)
  • Next by Date: Re: curl vs. wget (was Re: script browsing)
  • Previous by thread: Re: script BOMArchiveHelper?
  • Next by thread: Re: Photoshop 7.0 Save As Problems
  • Index(es):
    • Date
    • Thread