Автоматические последовательные имена файлов для Omnigraffle холстов

454
Scott Yu - Front-End UX

Есть ли способ автоматически называть холст в Omnigraffle последовательно, исходя из их положения? Какой-нибудь яблочный скрипт или плагин?

Например, идея 1, идея 2, идея 3 и т. Д. И если я переместу его, он будет использовать новую позицию как часть имени и обновит остальные, чтобы они были последовательными (корректировка нумерации холста).

0

1 ответ на вопрос

0
Scott Yu - Front-End UX

Okay I used an Applescript to do this after going through these sites:


tell application "OmniGraffle Professional 5" activate set theDocument to front document set theCanvases to every canvas of theDocument set canvasCount to count of canvases of theDocument repeat with canvasNumber from 1 to canvasCount set canvasNumber to canvasNumber as number if canvasNumber < 10 then set dd to "0" & canvasNumber else set dd to canvasNumber end if set name of canvas canvasNumber of theDocument to "Mockup " & dd set canvas of front window to canvas canvasNumber of theDocument end repeat end tell 

Похожие вопросы