• 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
Somehow calling Finder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Somehow calling Finder?


  • Subject: Somehow calling Finder?
  • From: "email@hidden via AppleScript-Users" <email@hidden>
  • Date: Sun, 19 Apr 2020 00:10:52 -0700

Hi - I’ve got an AppleScript that I use to either open or close an image using
the Preview application when I press a keyboard shortcut (using Alfred). For
some reason, when it takes the “open” path, the Finder application flashes
instantaneously just before the image is displayed. 

set appName to "Preview"

if application appName is running then

        tell application appName
                quit “Users:public:repos:applescript:applescript_keyboard.png"
        end tell

else

        tell application appName
                open “Users:public:repos:applescript:applescript_keyboard.png"
        end tell

end if


Is there a way to call it without flashing Finder? 

Thanks,
John
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Somehow calling Finder?
      • From: Yvan KOENIG via AppleScript-Users <email@hidden>
  • Prev by Date: Re: reiterating over a playlist
  • Next by Date: Re: Somehow calling Finder?
  • Previous by thread: Re: How do I use if/then with this Apple Mail script?
  • Next by thread: Re: Somehow calling Finder?
  • Index(es):
    • Date
    • Thread