Script to run IFTool on macOS using CrossOver or Wine.
This tool basically automates the following tasks
-
Opens a VPN tunnel to TU Vienna, if your computer does not use an internal IP (
128.130.106.…
or128.131…
) address, i.e. your computer is not connected via Ethernet to the (IFT part) of the university network -
Mount the SMB volume that contains the IFTool
-
Cleans up resources:
- Closes VPN tunnel
- Unmounts SMB share
- Closes CrossOver (or Wine)
after you closed the IFTool
The preparation steps below should be the same, regardless of if you want to use the IFTool manually or use this script:
-
Open the CrossOver application
-
Go to “CrossOver” → “Settings…” (⌘ + ,)
-
Disable “Launch Installer Assistant when CrossOver opens a .exe file”
-
Create a new bottle
- Select “Bottle” → “New Bottle…”
- Choose a name of your liking e.g. “IFTool”
- Choose “Windows 10 64-Bit” as Bottle type
-
Optional: Enable “High Resolution Mode” for your Bottle
If you want to use the IFTool manually, then the only thing left is to mount:
smb://data.ift.tuwien.ac.at/30_IT/01_IFT_Tool
in Finder (⌘ + K) and open IFT_Tool.exe
with the CrossOver or Wine (Stable) application. If you want to use the script, then please read on below.
Note: You only need to create the VPN configuration below, if you are not connected to the network of the TU Vienna already (for example using a wired connection or a WiFi connection to the network tunet
).
The script assumes that your VPN network configuration for the university is called TU Vienna
. If that is not the case, then please replace TU Vienna
with the name of your TU Vienna VPN configuration or rename your VPN configuration to “TU Vienna”.
Please use the following command inside the root of this repository
./iftool.sh
If you want you can also create a very basic application with Automator that launches the script contained in this repository. This way you only need to double click the application icon and do not need to open Terminal to run the script.
-
Open Automator
-
Select “Application” and click on “Choose”:
-
Drag (and drop) the “Run Shell Script” action into the workflow
-
Choose
/bin/zsh
as Shell and “Pass input: to stdin” -
Add the path to the script
iftool.sh
on your computer. For example, if your script is stored inside the directoryDocuments/Work/Projects/General/iFTool
inside your home folder, then paste the text:"$HOME/Documents/Work/Projects/General/iFTool/iftool.sh"
into the action:
-
Store the application (⌘ + S) as “IFTool”
-
Optional: Change the icon
- Copy the file
ApplicationStub.icns
- Navigate to the directory where you stored the application from step 5.
- Right click on the application and choose “Show Package Contents”
- Go to the subdirectory
Contents/Resources
- Paste
ApplicationStub.icns
to overwrite the generic Automator application icon
- Copy the file
- No pictures in “Mitarbeiterinformationen” (“Extras” → “Telefonnummern” Ctrl + T)
- Items in “Hilfe” menu do not work (e.g. “Hilfe” → “IFT_Tool allgemein”); Workaround: Link to SMB share containing help documents)