How to have a workflow service reference itself
How to have a workflow service reference itself
- Subject: How to have a workflow service reference itself
- From: Jeff Hanlon <email@hidden>
- Date: Thu, 17 Jan 2013 22:02:47 +0000
- Thread-topic: How to have a workflow service reference itself
Hello,
I was wondering if it was possible to reference an automator workflow SERVICE from inside of itself. If I use (path to me) it references a framework buried in the System/Library. I know that if I use (path to me) from a workflow saved as an application
that it works fine. However I need it as a service so I can use it from inside of Apple Remote Desktop.
The reason is so that I can have a relative reference to script files that I've stored within the workflow file. I'm putting custom shell scripts inside of the workflow file so that it is self contained and can be passed around as a single file.
I have this:
##
tell application "Finder"
set myfolder to (path to services folder from user domain) as string
end tell
##
But obviously this doesn't contain the workflow file itself.
I suppose I could hard code it to something like myfolder & "name.workflow" & ":Contents:UnixScripts:myunixscript.txt"
But I was hoping to stay away from too much hard coding.
Any suggestions would be much appreciated.
Thanks,
Jeff
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden