• 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: Using cliclick with apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using cliclick with apple script


  • Subject: Re: Using cliclick with apple script
  • From: Yvan KOENIG <email@hidden>
  • Date: Mon, 25 Jul 2016 09:48:20 +0200

> Le 25 juil. 2016 à 03:00, -dan d. <email@hidden> a écrit :
>
>
> Hello,
>
> Attached "cc.txt" is the single text file in the pdf.  Is that the info you wanted me to see?
>
> Thanks.
>
>
> …
> XB


Hello

The original PDF was carefully formatted.
Your text file destroy all this formatting which is a bit odd.

Attached is an edited version retaining the most important formatting features making the document readable.


Yvan KOENIG running El Capitan 10.11.6 in French (VALLAURIS, France) lundi 25 juillet 2016 09:48:08

CLICLICK 3.0
Carsten Blüm Mac Development

WHAT IS CLICLICK?
Cliclick is a Terminal/shell application that emulates keyboard and/or mouse events. This can include moving the mouse, clicking, double-clicking, command- clicking, dragging, pressing Escape and so on. Hence, it is a tool that can help in automating/scripting things that otherwise are more or less unscriptable.
HOW TO USE
Invoke cliclick with switch -h (i.e.: cliclick -h) to see usage information and examples.
But to just give you an idea of how it works, here is a simple demonstration:
cliclick c:28,11 w:500 m:+0,+24 w:1000 kd:alt w:1000 c:. ku:alt
This code will execute the following commands:
• c:28,11 Click at position 28/11 (opentheApplemenu)
• w:500 Wait500milliseconds
• m:+0,+24 Move the mouse 24 pixels down (resulting in 28/35,which is the first menu item, i.e.: “About this Mac”)
• w:1000 Wait 1000 milliseconds (so you have time to notice that the item is hilited)
• kd:alt Press the “alt” modifier key
• w:1000 Wait 1000 milliseconds (to give you the time to notice that “Aboutthis Mac” changed to “Open System Profiler”)
• c:. Click at the current position (“.” is the current mouse position, just as in Terminal, “.” is the current directory. You could also write c:+0,+0)
• ku:alt Finally: release the “alt” key
When running this example, you will have to prefix it with the full path (should be /Volumes/cliclick), if you have not installed cliclick yet.

INSTALLATION
Put cliclick anywhere you like. In my eyes the best (i.e.: most common) place would be
/usr/local/bin. Additionally, you will want to make sure that this path is in your $PATH environment variable, so that you can use cliclick without specifying the full path. (If you have no idea what $PATH is, you should probably familiarize yourself with shell basics. A web search for something like “bash profile path” should be sufficient to find plenty of resources.)

WHAT IS NEW IN VERSION 3.0?
• Implemented the most requested feature: typing (almost) arbitrary text using cliclick.
• Example: cliclick t:'Wow, it works!'
cliclick 3.0 was released on 09/15/2014.
Release notes for previous versions can be found on the website
PRICE
Cliclick is free. However, if you appreciate it and would like to send a “Thank you”,
there are a number of ways to do that.
Please take a look at my website for more information or simply invoke cliclick -d at the shell.

CONTACT / FEEDBACK
Carsten Blüm
E-Mail: email@hidden
cliclick Homepage
cliclick project at GitHub
DISCLAIMER
This application is provided as-is. Support is not included. Use this software at your own risk. If for some obscure reason any damage or data loss may arise from using it (which in my opinion is nearly impossible), it is nobody else’s problem than yours.





 _______________________________________________
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: Using cliclick with apple script
      • From: Yvan KOENIG <email@hidden>
References: 
 >Using cliclick with apple script (From: "-dan d." <email@hidden>)
 >Re: Using cliclick with apple script (From: rpoland <email@hidden>)
 >Re: Using cliclick with apple script (From: "-dan d." <email@hidden>)
 >Re: Using cliclick with apple script (From: rpoland <email@hidden>)
 >Re: Using cliclick with apple script (From: "-dan d." <email@hidden>)

  • Prev by Date: Re: Using cliclick with apple script
  • Next by Date: Re: Using cliclick with apple script
  • Previous by thread: Re: Using cliclick with apple script
  • Next by thread: Re: Using cliclick with apple script
  • Index(es):
    • Date
    • Thread