• 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
Used to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Used to work


  • Subject: Used to work
  • From: Irwin Poché <email@hidden>
  • Date: Sat, 26 Mar 2011 09:42:03 -0500


I haven't used this piece of code in quite a while and it no longer works.  It did a paste in the frontmost application.  The FrontmostApp() call does correctly return the name of whatever is in front.

Any ideas ?

-Irwin


set theProcess to FrontmostApp()

tell application theProcess
activate
tell application "System Events"
tell application theProcess
keystroke "v" using command down
delay 1 --give it time to update
end tell
end tell
end tell

on FrontmostApp()
tell application "System Events" to return displayed name of (path to «constant afdregfp»)
end FrontmostApp


 _______________________________________________
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: Used to work
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: Naming a duplicated file
  • Next by Date: Re: Used to work
  • Previous by thread: Re: asc ascii file extensions
  • Next by thread: Re: Used to work
  • Index(es):
    • Date
    • Thread