[1.0] IDE: Mac: Can't open a Sikuli script in file open dialog - script.sikuli not selectable --- fixed in 1.1.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
************* fixed in 1.1.0
the app generated at setup binds the .sikuli ending to the app when first started or moved to /Applications (recommended)
-------
*** problem -------
This only happens on installations, that did not have Sikuli X-1.0rc3 installed before switching to the new version 1.0.0
On Mac it was once decided by the developers, to hide the folder structure using the "this folder is a bundle/package" bit, which shows a folder as file in the Finder.
Currently there is no app available, that registers this filetype, but since the IDE on Mac still tries to open files, we have the mentioned problem.
*** workaround -------------------
Until I have a fix for that, this is what one can do:
--- option 1:
download Sikuli X-1.0rc3 from
https:/
and move the app to the /Applications folder.
This should register the filetypes .sikuli and .skl and the existing folders should no longer be folders but bundles (system restart might be necessary) with the respective Sikuli file icon.
It should not be necessary to start the RC3 IDE.
Now in the 1.0.0 IDE, .sikuli should show up as files and should be selectable.
The RC3 IDE app can be moved to trash afterwards.
--- option 2:
If you do not want to download RC3, but have Xcode installed on your system, then you can change a folder to a bundle in a Terminal session:
SetFile -a B path-to-
Now the scripts are selectable, but do not have nice icons ;-)
--- option 3:
If you do not want to neither download RC3 nor Xcode, then you might try to use the SetFile command that I have taken from my Xcode 4.6.2 and put in a zip file for download at (look readme.txt)
https:/
I swear it is clean ;-) but not tested on systems without Xcode.
usage: SetFile -a B path-to-
-------
Sikuli 1.0.0
Mac OSX 10.7.4
1) Open IDE
2) File --> Save
3) File --> Open
4) Select xxx.sikuli
5) The open button in the finder window is disabled, therefore you can't open the source.
I can provide a screenshot if you need this.
I'm running JDK 1.6
summary: |
- Can't open a Sikuli source file Mac + [1.0] Can't open a Sikuli source file Mac |
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.0 |
summary: |
- [1.0] Can't open a Sikuli source file Mac + [1.0] Can't open a Sikuli script file Mac |
summary: |
- [1.0] Can't open a Sikuli script file Mac + [1.0] IDE: Mac: Can't open a Sikuli script in file open dialog - + script.sikuli not selectable. |
summary: |
[1.0] IDE: Mac: Can't open a Sikuli script in file open dialog - - script.sikuli not selectable. + script.sikuli not selectable --- workaround |
description: | updated |
description: | updated |
tags: | added: ide |
Changed in sikuli: | |
status: | In Progress → Fix Committed |
importance: | High → Critical |
description: | updated |
description: | updated |
Changed in sikuli: | |
importance: | Critical → High |
Changed in sikuli: | |
importance: | High → Critical |
summary: |
[1.0] IDE: Mac: Can't open a Sikuli script in file open dialog - - script.sikuli not selectable --- workaround + script.sikuli not selectable --- fixed in 1.1.0 |
description: | updated |
I believe the problem is that the Open dialog on Mac probably only allows for selection of files rather than folders also. So one has to navigate down to a folder and then try to select a file. Which doesn't work since files saved in Sikuli are stored in folders. So the code probably needs to be changed to allow the selection of folders also.
Once that is working the rest of the functionality to load the previously saved sikuli file will need to be tested also.
I've test this and it works fine in Windows.
I'll poke around the code a bit.
- Nimret