Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ContentSync from Sketch scripting to sync a Selection #129

Open
nilsdoehring opened this issue Jul 28, 2021 · 3 comments
Open

Use ContentSync from Sketch scripting to sync a Selection #129

nilsdoehring opened this issue Jul 28, 2021 · 3 comments

Comments

@nilsdoehring
Copy link

Request for a programmatic way to use ContentSync on a Sketch Selection object.

Example use case based on #126 :

function withContentSyncVersion(version) {
  if(version.syncable) {
    //omitted: duplicate a page in Sketch, name it by the value of version.name, and select all objects on that page
    ContentSync.API().syncSelection(version.name, selection); //or similar
  }
}

ContentSync.API().versions((ok, data) => {
  if(ok) data.map(withContentSyncVersion);
  if(!ok) console.log("Error: " + data);
});
@nilsdoehring
Copy link
Author

Hi @dbrody – any chance to get this implemented? It would be a massive time-saver for our workflows.

@dbrody
Copy link
Collaborator

dbrody commented Oct 6, 2021

@nilsdoehring yes we've been giving it some thought. There are some implications we need to factor in to prevent issues if this were to be misused accidentally. Also, our system currently only pulls one version at a time so we need to consider a few other changes as well to make this sort of use not take too long and not create too much additional overhead.

This is on our list and we will try to get it into our prioritization stack in the coming weeks. I'll update this as we have updates.

@dbrody
Copy link
Collaborator

dbrody commented Mar 30, 2023

@nilsdoehring Sorry this has been backlogged so long. We didnt see many 👍 on it so it has not been prioritized. If you still want it implemented, please 👍 on the issue description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants