Skip to content

Commit

Permalink
id doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtule committed Oct 10, 2019
1 parent cfc16c5 commit 19be728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cd to .../cd to .../main.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ int main(int argc, const char * argv[]) {
if(true){ // move to space
SystemEventsApplication* sysEvents = [SBApplication applicationWithBundleIdentifier:@"com.apple.systemevents"];

id pos = [[[[[sysEvents processes] objectWithName:@"Finder"] windows] objectWithID:[NSNumber numberWithInteger:findWin.id]] position];
id pos = [[[[[sysEvents processes] objectWithName:@"Finder"] windows] objectAtIndex:1] position];

[[[[sysEvents processes] objectWithName:@"Terminal"] windows] objectWithID:[NSNumber numberWithInteger:newWin.id]].position=pos;
[[[[sysEvents processes] objectWithName:@"Terminal"] windows] objectAtIndex:1].position=pos;
}
[terminal activate];
}
Expand Down

0 comments on commit 19be728

Please sign in to comment.