ScriptBay and the global ES dollar ($) object General Discussions Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
ScriptBay and the global ES dollar ($) object
08/08/2015
9:33 am
Avatar
Marat Shagiev
New Member
Members
Forum Posts: 0
Member Since:
08/08/2015
sp_UserOfflineSmall Offline
Hi!
Through a global ExtendScript object (dollar ($) object) can get the filename of the current script: $.fileName.
But when running the script through ScripBay the $.fileName value is a number (which increases with each new script launch).
Can I somehow get the filename of the running script?
If not, can you fix it in the next release of the application?
Many thanks!
10/02/2015
8:56 am
Avatar
Harbs
Admin
Forum Posts: 201
Member Since:
12/19/2010
sp_UserOfflineSmall Offline

Hmm.

I assume the problem is because the script is not actually being run from the file, but rather from a string in memory. I'll see if I can fake this.

10/02/2015
9:03 am
Avatar
Harbs
Admin
Forum Posts: 201
Member Since:
12/19/2010
sp_UserOfflineSmall Offline

I just tested in ScriptBay, and it seems to get the correct fileName.

 

Are you talking about running from the editor, or from the file list?

Forum Timezone: America/New_York

Most Users Ever Online: 197

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jacksonlame: 18

niftyix: 10

Ulrich Bogun: 9

jackferthomas: 8

Adrian: 8

Soyablack123: 7

Member Stats:

Guest Posters: 1

Members: 6009

Moderators: 0

Admins: 2

Forum Stats:

Groups: 3

Forums: 23

Topics: 279

Posts: 705

Newest Members: MWillustration, Our Daily Bread Ministries, ncbydkABItsYOXM, YdNescPZ, alexnew, qEJlnQXkCF

Administrators: In-Tools: 11, Harbs: 201