Questions tagged [py-appscript]

40 questions
0
votes
0 answers

Parse an outlook mail from a specific sender in python in Mac OS

I am trying to fetch some details that I get in a mail for a specific fellow developer. I wanted to create a python script to trigger of some actions as & when a mail comes from him with a specific subject. Currently I am stuck on reading the mail…
ArnabSaha
  • 23
  • 8
0
votes
1 answer

Change macOS background picture with "adapt to screen" parameter in python

I want to change my wallpaper using python on macOs. Using this code : from appscript import app, mactypes app('Finder').desktop_picture.set(mactypes.File(file_loc)) which works fine, except it always resets parameter from "adjust to screen" to…
Leowrin
  • 1
  • 5
0
votes
1 answer

Using appscript how can I accept self-signed SSL cert in Safari

I'm trying to automate some stuff which involves browsing to a https url. I'm using py-appscript with Safari on Mac OS X. But when Safari navigates to the https URL, since I have a self-signed certificate, it throws up a popup window which asks you…
John
  • 1,681
  • 3
  • 20
  • 28
0
votes
1 answer

appscript attribute error

I'm new to programming, and to python. I'm trying to use appscript in a python script to choose a pdf and a new destination folder, open the pdf in Adobe Acrobat Pro, OCR it, and save it in the new folder. Testing along they way, I'm getting an…
0
votes
1 answer

python appscript module - creating k. type objects

I'm learning and enjoying the appscript module, but I'm a little confused about how to instantiate basic k. type objects. for example, if I want to create a variable that holds a k.boolean value to use while scripting an application, how do I create…
BenjaminGolder
  • 1,573
  • 5
  • 19
  • 37
0
votes
1 answer

InDesign script labels in appscript python module

I'm using appscript to create an InDesign document from Database data, but I can't seem to figure out how to set the contents of the objects in my page. In older versions of ID (CS4 and earlier, if i'm correct) I could get the object with script…
Sander
  • 1,183
  • 12
  • 27
0
votes
1 answer

How to set selection for a table in Numbers?

How do you set the selection for a table in Numbers using py-appscript? This seems like it should be really simple to do but the solution is frustratingly evasive. I can get the current selection: current_table.selection_range and I can get its…
Chris Redford
  • 16,982
  • 21
  • 89
  • 109
0
votes
1 answer

How can I invoke custom Scripting Additions using Python Appscript?

Assuming I have a new scripting addition, does appscript recognize them, and how do you invoke them using appscript?
jopes
  • 245
  • 2
  • 13
-1
votes
1 answer

Launch Pre configured Outlook email on Mac

i was looking to automate email with outlook, i needed to click a button and open a pre configurated email body, subject and attachment in outlook, this way i could edit or make changes. Im using Mac OS. Found this Automate Outlook on Mac with…
mclogan
  • 35
  • 5
-1
votes
1 answer

filtering an array by date and pass matching data set to a new array to be written into a google sheet

Hi im currently trying to compare an array of data using the ArrayLib but it is unable to match any of my dates and thus passing all of the data sets instead of just the ones between the date range. If there is a better way to achieve this im open…
1 2
3