• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

applescript folder action

Explorer ,
Aug 19, 2016 Aug 19, 2016

Copy link to clipboard

Copied

I am attempting to set up a applescript folder action to play on any images that are added to a folder.  Here's where I'm at:

on adding folder items to thisFolder after receiving someItems

       repeat with thisItem in someItems

            tell application "Adobe Photoshop CS5.1"

                 activate

                 open thisItem

                 do action "smart sharpen" from "bottomFRAME"

            end tell

       end repeat

end adding folder items to

However, whenever an image lands in the folder, photoshop only opens it, but the action does not fire.  I am confused because this simplification of the script DOES fire the action:

tell application "Adobe Photoshop CS5.1"

      do action "smart sharpen" from "bottomFRAME"

end tell

I cannot figure out why it works in the later but not the former....

TOPICS
Actions and scripting

Views

329

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Contributor ,
Aug 19, 2016 Aug 19, 2016

Copy link to clipboard

Copied

LATEST

See if adding delay 1 after open thisItem would help

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines