This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testVar = "Trevor - http://creative-scripts.com"; | |
var scriptArg1 = app.scriptArgs.getValue("scriptArg1"); | |
var envVar1 = $.getenv("envVar1"); | |
function blah(bar, baz){ | |
var result = bar + " " + baz; | |
alert(result); | |
return result; | |
} | |
blah(scriptArg1, envVar1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testVar = "foo"; | |
var envVar1 = $.getenv("envVar1"); | |
var envVar2 = $.getenv("envVar2"); | |
function blah(bar, baz){ | |
var result = bar + " " + baz; | |
alert(result); | |
return result; | |
} | |
blah(envVar1, envVar2); | |
// See https://forums.adobe.com/message/10632451#10632451 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://forums.adobe.com/message/10632458#10632458 | |
if (app.name !== 'Adobe Photoshop') { | |
alert('Crash,for Adobe Photoshop only!'); | |
} | |
var remoteCode = 'https://gist.githubusercontent.com/Trevor-/6a02d8cb49bbfeb9822f061dea300bc1/raw'; | |
// this function is nicked from // https: //forums.adobe.com/thread/2364797 | |
function getSystemCommandStdout(command) { | |
var stdout = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////// | |
// For InDesign Windows !!!!! // | |
// See https://forums.adobe.com/message/10632451#10632451 // | |
// By Trevor http://creative-scripts.com // | |
//////////////////////////////////////////////////////////// | |
var remoteCodeUrl, vbs, appleScript, remoteScript; | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////// | |
// For InDesign Windows !!!!! // | |
// See https://forums.adobe.com/message/10632451#10632451 // | |
// By Trevor http://creative-scripts.com 21 Sep 18 // | |
//////////////////////////////////////////////////////////// | |
// https://gist.github.com/Trevor-/a5de06d41e28936ad72fe3e348bddd33 | |
var remoteCodeUrl, vbs, appleScript, remoteScript; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////////////// | |
// For InDesign but can easily be adapter for some other apps // | |
// Show methods of sharing vars etc. between local and remote scripts // | |
// By Trevor http://creative-scripts.com 21 Sep 18 // | |
// This is the "remote" script // | |
// The "local" is at https://gist.github.com/Trevor-/a5de06d41e28936ad72fe3e348bddd33 // | |
//////////////////////////////////////////////////////////////////////////////////////// | |
// "aVarFromLocalToRemote" is set in the "local" script | |
alert("Got " + aVarFromLocalToRemote); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var varFromRemote = "foo"; | |
function blah(bar, baz){ | |
var result = bar + " " + baz; | |
alert(result); | |
return result; | |
} | |
blah(varFromLocal1, varFromLocal2); | |
// See https://forums.adobe.com/message/10632451#10632451 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LogFactory.jsx Ver 1 By Trevor 6rd Mar 2017 https://creative-scripts.com/logging-with-a-smile/ Provided 'as is', with no warranty whatsoever. This line may not be removed. | |
var LogFactory=function(file,write,store,level,defaultStatus,continuing){if(file&&(file.constructor===String||file.constructor===File)){file={file:file};}else if(!file)file={file:{}};write=(file.write!==undefined)?file.write:write;if(write===undefined){write=true;}store=(file.store!==undefined)?file.store||false:store||false;level=(file.level!==undefined)?file.level:level;defaultStatus=(file.defaultStatus!==undefined)?file.defaultStatus:defaultStatus;if(defaultStatus===undefined){defaultStatus='LOG';}continuing=(file.continuing!==undefined)?file.continuing:continuing||false;file=file.file||{};var stack,times,logTime,logPoint,icons,statuses,LOG_LEVEL,LOG_STATUS;stack=[];times=[];logTime=new Date();logPoint='Log Factory Start';icons={"1":"\ud83d\udd50","130":"\ud83d\udd5c","2":"\ud83d\udd51","230":"\ud83d\udd5d","3":"\ud83d\udd52","330":"\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// LogFactory.jsx // | |
// Version 1 // | |
// 1st Published: 6th Mar 2017 // | |
// Modified: 6th Mar 2017 // | |
// Copyright © 2017 Trevor https://creative-scripts.com // | |
// May be used on condition that this comment block is left in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jshint unused: true, undef: true, evil:true | |
/* globals app, alert, LocationOptions, UndoModes, ColorSpace, UnitValue, | |
AutoEnum, MeasurementUnits, AlternateGlyphForms, File, Folder, | |
ConditionIndicatorMethod, ScriptLanguage, ChangeConditionsModes, Window, exit, $*/ | |
////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// InDesign Thin Font Finder Version 1 // | |
// By Trevor https://creative-scripts.com // | |
// Created 27th March 2017 Last modified 30th March 2017 // | |
// See https://creative-scripts.com/indesign-thin-font-finder for explanation, instructions and EULA // |
OlderNewer