Error: No result was returned from some part of this expression. (-2763)Can an applescript “tell” call execute without visibly launching the application?Applescript to Expose all Finder Windows?PHP executing osascript differently from Terminal?How to check in AppleScript if an app is running, without launching it - via osascript utilityAppleScript “do shell script” ignores PATH VariableError Copying a User Chosen Photo With AppleScriptHow to generate osascript with if else condition that could be ran as NSAppleScriptAppleScript: execution error -10810 when launching certain applications from shebang'ed scriptsApplescript is end telling without reasonBash Script Calling AppleScript Error
Besides the up and down quark, what other quarks are present in daily matter around us?
Comment rendre "naysayers" ?
Enumerate Derangements
What actually is the vector of angular momentum?
Why was the battle set up *outside* Winterfell?
How would adding a darkvision racial trait to Dragonborn affect balance?
Is there a term for the words whose stress is on the first syllable?
When and why did journal article titles become descriptive, rather than creatively allusive?
Do I really need diodes to receive MIDI?
I caught several of my students plagiarizing. Could it be my fault as a teacher?
What does this colon mean? It is not labeling, it is not ternary operator
How to give very negative feedback gracefully?
Is there a legal ground for stripping the UK of its UN Veto if Scotland and/or N.Ireland split from the UK?
What is a "listed natural gas appliance"?
My ID is expired, can I fly to the Bahamas with my passport?
How do I tell my manager that his code review comment is wrong?
Was there ever a Kickstart that took advantage of 68020+ instructions that would work on an A2000?
A non-technological, repeating, phenomenon in the sky, holding its position in the sky for hours
Identifying a transmission to myself
How can I get a job without pushing my family's income into a higher tax bracket?
What does a yield inside a yield do?
What are the spoon bit of a spoon and fork bit of a fork called?
In Avengers 1, why does Thanos need Loki?
Is this homebrew life-stealing melee cantrip unbalanced?
Error: No result was returned from some part of this expression. (-2763)
Can an applescript “tell” call execute without visibly launching the application?Applescript to Expose all Finder Windows?PHP executing osascript differently from Terminal?How to check in AppleScript if an app is running, without launching it - via osascript utilityAppleScript “do shell script” ignores PATH VariableError Copying a User Chosen Photo With AppleScriptHow to generate osascript with if else condition that could be ran as NSAppleScriptAppleScript: execution error -10810 when launching certain applications from shebang'ed scriptsApplescript is end telling without reasonBash Script Calling AppleScript Error
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Getting the following error when running my Applescript:
348:532: execution error: No result was returned from some part of this expression. (-2763)
The applescript runs successfully when utilized within a python script and there are no issues. But this error always is kicked back whenever the scipt executes and I would like to fix it. I have tried inserting an extra return statement into the if/else clause, but that doesn't seem to be the issue.
script="""
try
tell application "Finder" to get application file id "com.adobe.Photoshop"
set appExists to true
on error
set appExists to false
end try
if appExists then
tell application id "com.adobe.Photoshop"
(activate) & (do javascript file "%s" with arguments "%s", "%s")
end tell
else
return "Couldn't find proper version of Photoshop CC to launch!"
end if
""" % (script_path, src_files, self.path_to_folder)
applescript osascript
add a comment |
Getting the following error when running my Applescript:
348:532: execution error: No result was returned from some part of this expression. (-2763)
The applescript runs successfully when utilized within a python script and there are no issues. But this error always is kicked back whenever the scipt executes and I would like to fix it. I have tried inserting an extra return statement into the if/else clause, but that doesn't seem to be the issue.
script="""
try
tell application "Finder" to get application file id "com.adobe.Photoshop"
set appExists to true
on error
set appExists to false
end try
if appExists then
tell application id "com.adobe.Photoshop"
(activate) & (do javascript file "%s" with arguments "%s", "%s")
end tell
else
return "Couldn't find proper version of Photoshop CC to launch!"
end if
""" % (script_path, src_files, self.path_to_folder)
applescript osascript
add a comment |
Getting the following error when running my Applescript:
348:532: execution error: No result was returned from some part of this expression. (-2763)
The applescript runs successfully when utilized within a python script and there are no issues. But this error always is kicked back whenever the scipt executes and I would like to fix it. I have tried inserting an extra return statement into the if/else clause, but that doesn't seem to be the issue.
script="""
try
tell application "Finder" to get application file id "com.adobe.Photoshop"
set appExists to true
on error
set appExists to false
end try
if appExists then
tell application id "com.adobe.Photoshop"
(activate) & (do javascript file "%s" with arguments "%s", "%s")
end tell
else
return "Couldn't find proper version of Photoshop CC to launch!"
end if
""" % (script_path, src_files, self.path_to_folder)
applescript osascript
Getting the following error when running my Applescript:
348:532: execution error: No result was returned from some part of this expression. (-2763)
The applescript runs successfully when utilized within a python script and there are no issues. But this error always is kicked back whenever the scipt executes and I would like to fix it. I have tried inserting an extra return statement into the if/else clause, but that doesn't seem to be the issue.
script="""
try
tell application "Finder" to get application file id "com.adobe.Photoshop"
set appExists to true
on error
set appExists to false
end try
if appExists then
tell application id "com.adobe.Photoshop"
(activate) & (do javascript file "%s" with arguments "%s", "%s")
end tell
else
return "Couldn't find proper version of Photoshop CC to launch!"
end if
""" % (script_path, src_files, self.path_to_folder)
applescript osascript
applescript osascript
asked Mar 22 at 20:54
Zak44Zak44
73214
73214
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I don’t have PhotoShop to test, but I'm pretty sure it is from the line with the do javascript
statement. The term activate
is a command to activate the application (and doesn’t return a result), while the ampersand (&) is used to concatenate strings, so you are trying to add a non-existent value to the javascript result.
It looks like you are wanting to use multiple statements on one line - you can’t do that with AppleScript (although in this case there isn't s syntax error), you need to put statements on separate lines.
Thanks! This did it when I put both on separate lines. I also needed to throw in a return afterwards, or else an undefined was always given.
– Zak44
Mar 25 at 17:05
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55307644%2ferror-no-result-was-returned-from-some-part-of-this-expression-2763%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don’t have PhotoShop to test, but I'm pretty sure it is from the line with the do javascript
statement. The term activate
is a command to activate the application (and doesn’t return a result), while the ampersand (&) is used to concatenate strings, so you are trying to add a non-existent value to the javascript result.
It looks like you are wanting to use multiple statements on one line - you can’t do that with AppleScript (although in this case there isn't s syntax error), you need to put statements on separate lines.
Thanks! This did it when I put both on separate lines. I also needed to throw in a return afterwards, or else an undefined was always given.
– Zak44
Mar 25 at 17:05
add a comment |
I don’t have PhotoShop to test, but I'm pretty sure it is from the line with the do javascript
statement. The term activate
is a command to activate the application (and doesn’t return a result), while the ampersand (&) is used to concatenate strings, so you are trying to add a non-existent value to the javascript result.
It looks like you are wanting to use multiple statements on one line - you can’t do that with AppleScript (although in this case there isn't s syntax error), you need to put statements on separate lines.
Thanks! This did it when I put both on separate lines. I also needed to throw in a return afterwards, or else an undefined was always given.
– Zak44
Mar 25 at 17:05
add a comment |
I don’t have PhotoShop to test, but I'm pretty sure it is from the line with the do javascript
statement. The term activate
is a command to activate the application (and doesn’t return a result), while the ampersand (&) is used to concatenate strings, so you are trying to add a non-existent value to the javascript result.
It looks like you are wanting to use multiple statements on one line - you can’t do that with AppleScript (although in this case there isn't s syntax error), you need to put statements on separate lines.
I don’t have PhotoShop to test, but I'm pretty sure it is from the line with the do javascript
statement. The term activate
is a command to activate the application (and doesn’t return a result), while the ampersand (&) is used to concatenate strings, so you are trying to add a non-existent value to the javascript result.
It looks like you are wanting to use multiple statements on one line - you can’t do that with AppleScript (although in this case there isn't s syntax error), you need to put statements on separate lines.
answered Mar 23 at 5:24
red_menacered_menace
5001310
5001310
Thanks! This did it when I put both on separate lines. I also needed to throw in a return afterwards, or else an undefined was always given.
– Zak44
Mar 25 at 17:05
add a comment |
Thanks! This did it when I put both on separate lines. I also needed to throw in a return afterwards, or else an undefined was always given.
– Zak44
Mar 25 at 17:05
Thanks! This did it when I put both on separate lines. I also needed to throw in a return afterwards, or else an undefined was always given.
– Zak44
Mar 25 at 17:05
Thanks! This did it when I put both on separate lines. I also needed to throw in a return afterwards, or else an undefined was always given.
– Zak44
Mar 25 at 17:05
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55307644%2ferror-no-result-was-returned-from-some-part-of-this-expression-2763%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown