[1.0] IDE: Mac: Can't open a Sikuli script in file open dialog - script.sikuli not selectable --- fixed in 1.1.0

Bug #1185559 reported by Jack Warder on 2013-05-29
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Sikuli
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://launchpad.net/sikuli/sikuli-api/x1.0-rc3/+download/Sikuli-X-1.0rc3%20%28r905%29-osx-10.6.dmg
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-folder/script.sikuli
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://dl.dropboxusercontent.com/u/42895525/Xcode-SetFile.zip
I swear it is clean ;-) but not tested on systems without Xcode.
usage: SetFile -a B path-to-folder/script.sikuli

----------------------------------------------------------------------------

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

Tags: ide Edit Tag help
Nimret Sandhu (nimret) wrote :

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

RaiMan (raimund-hocke) on 2013-06-11
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
RaiMan (raimund-hocke) on 2013-06-14
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
RaiMan (raimund-hocke) on 2013-06-14
description: updated
description: updated
RaiMan (raimund-hocke) on 2013-06-15
tags: added: ide
RaiMan (raimund-hocke) on 2013-07-16
Changed in sikuli:
status: In Progress → Fix Committed
importance: High → Critical
description: updated

I went with the workaround of installing the previous build of Sikuli & now I can open sikuli source files. However, I no longer have access to the .py, .html, and .png files that were once in the sikuli directory. Is this also a bug?

RaiMan (raimund-hocke) on 2013-07-20
description: updated
Changed in sikuli:
importance: Critical → High
RaiMan (raimund-hocke) on 2015-09-17
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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers