Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excellent - availble to help/tutor? #1

Closed
Noitidart opened this issue Aug 19, 2014 · 3 comments
Closed

Excellent - availble to help/tutor? #1

Noitidart opened this issue Aug 19, 2014 · 3 comments

Comments

@Noitidart
Copy link

Hi there man this is excellent work. I was wondering if you were available to help a noob at mac os js-ctypes. I'm trying to do the following things:

  • Change icon of Firefox windows in a profile (affect change icon in taskbar and alt+tab menu too) (I accomplished this in Windows it looks like this: here)
  • Get process id that is locking a file
  • Get most recent window in process id
  • Set window to foreground

Aside:
do you know how to create a applescript file and set its icon? Im trying to programatically do this http://weblogs.mozillazine.org/asa/archives/2008/08/shortcut_to_lau.html

I'm in process of trying to get a Mac OS VM setup :)

@Noitidart
Copy link
Author

I figured out how to get process id of a profile.

Im not sure how to get windows for this pid. Then Im not sure how to focus any of those windows. Can you please help point me in right direction?

@Noitidart
Copy link
Author

I'm getting the hang of this no need for tutor thanks! :)

@Noitidart
Copy link
Author

If you get a chance though can you plase help answer my stackoverflow question here:

http://stackoverflow.com/questions/27519953/mac-os-x-corefoundation-reading-dictionary-value

Basically within this convertCFString there is a function CFStringGetLength which takes 1st argument of CFStringRef which is defined as new ctypes.void_t.ptr. I am running this on the return value of CFDictionaryGetValue, and the return value of this function is also ctypes.void_t.ptr, it just doesn't have a new in front of it. I can't figure out why this won't work please help.

It keeps throwing Exception: expected type pointer, got ctypes.voidptr_t(ctypes.UInt64("0x7fff7a13b7f0"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant