• 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
Re: Is there a way in Applescript GUI scripting to Simulate Drag and Drop action?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way in Applescript GUI scripting to Simulate Drag and Drop action?


  • Subject: Re: Is there a way in Applescript GUI scripting to Simulate Drag and Drop action?
  • From: Ashwin <email@hidden>
  • Date: Thu, 21 Jun 2012 21:43:27 +0530

Thanks Yuma, But then, that seems so indirect way of simulating the drag and drop.  One would have actually expected Apple to provide this action as a part of System Events --> Processes suite. Apple invented Drag and drop  and yet there is no direct way of doing it by System Events .

Also, Thanks John. Though that wasn't a solution i was expecting (because my application doesn't have a dictionary defined for applescript, so i had to use System Events to simulate the end user actions.), i picked the lines in the script you posted.


On Thu, Jun 21, 2012 at 10:16 AM, Yuma Antoine Decaux <email@hidden> wrote:
Hi,

It works when voice over is turned on (command+f5) or with fn key pressed for laptops. Once toggled, you use ctrl-option , and . to do drag and drop respectively between windows or applications. I've used it for some auto scripts on message receive for imessage, but i use voice over anyway. Perhaps you can make a turn on/off script with the voice over suite.

Best regards,

Yuma

On 21/06/2012, at 4:27 PM, Ashwin <email@hidden> wrote:

> Hi ,
>
> I need to automate a scenario where there would be a need to simulate drag and drop action between 2 applications. My scenario would be similar to this. Drag a contact from address book and drop it in to the "To" field of a New message in Mail application. Is it possible to explicitly simulate the drag and drop event via GUI scripting? If not, can anyone please suggest a way to simulate this event?
>
> Many Thanks
> Ashwin
> _______________________________________________
> 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


 _______________________________________________
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

References: 
 >Is there a way in Applescript GUI scripting to Simulate Drag and Drop action? (From: Ashwin <email@hidden>)

  • Prev by Date: Migrating Mail to Lion
  • Next by Date: from Filemaker 10 how can I auto save in outlook in drafts folder?
  • Previous by thread: Re: Is there a way in Applescript GUI scripting to Simulate Drag and Drop action?
  • Next by thread: Migrating Mail to Lion
  • Index(es):
    • Date
    • Thread