Skip to content

Utility scripts to open project and sources with 4D from cli or other apps

License

Notifications You must be signed in to change notification settings

mesopelagique/OpenWith4D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenWith4D

Utility scripts to open with 4D for macOS from Terminal and other apps.

Why?

The current version of 4D do not allow to open the project folder or a source file not in current opened project.

This script will find associated project file to open it.

Install on macOS

Download using terminal

sudo curl -L https://raw.githubusercontent.com/mesopelagique/OpenWith4D/master/macos/4d -o /usr/local/bin/4d && chmod +x /usr/local/bin/4d

💡 Your password will be prompted to install in /usr/local/bin

or If you need only quick action section

Usage

Usage in Terminal

Open with 4D folder, project or source file using the command line.

Open 4d

4d 

same as open -a "4D"

Open a projet root folder

4d $HOME/Kaluza # open the project inside $HOME/Kaluza/Project/
for current folder
4d

or

4d .

Open a projet file

4d $HOME/Kaluza/Project/Kaluza.4DProject 

Open a source file (if inside a project)

4d $HOME/Kaluza/Project/Sources/Methods/install_github.4dm

Use with SourceTree (Git GUI)

SourceTree allow you to use custom action.

SourceTreeAction

So using a shortcut, you can open your 4d project in 4D.

Use with Paletro and Finder.app

Paletro allow to add extension

Download this project source file and open folder openin4d.pext, it will install the extension if you have Paletro

App available also using Setapp (the Netflix of Mac Apps).

PaletroExt

Use with ...

💡 You can achieve this with other tools. (You can Pull Request this project to explain how)

Quick Action

MacOs allow you to create with automator some quick action that could be avaiable in Finder, and oher app

quickaction

You can download a zipped version in release or download this project sources

Open the workflow to install it.

About

Utility scripts to open project and sources with 4D from cli or other apps

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published