Display (Run) temporary script with chdir

Feature requests for future versions of Hollywood can be voiced here
Post Reply
User avatar
lazi
Posts: 363
Joined: Thu Feb 24, 2011 11:08 pm

Display (Run) temporary script with chdir

Post by lazi » Sun Nov 03, 2019 5:11 pm

I would like to run a temporary script from a different drawer than the original.
For example a script saved to a location obtained from GetTempFileName(), but changed PROGDIR: to another location.

There is a -nochdir argument for Hollywood which controls it but the opposite way. I think a -chdir <path> argument would be
handy for this problem.
What do you think?

User avatar
airsoftsoftwair
Posts: 3216
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Display (Run) temporary script with chdir

Post by airsoftsoftwair » Tue Nov 05, 2019 7:30 pm

Can't you do something like this?

Code: Select all

cd <desired-active-directory>
Hollywood:System/Hollywood T:tmp.hws -nochdir
In that way, you can have any directory you want as the current one and the Hollywood script can be in some arbitrary temporary directory. Or have I misunderstood the problem here?

User avatar
lazi
Posts: 363
Joined: Thu Feb 24, 2011 11:08 pm

Re: Display (Run) temporary script with chdir

Post by lazi » Tue Nov 05, 2019 9:13 pm

I have tried it the same way, but certainly overlooked something because @includes was not worked. Tried again and it works now.
So sorry to bother you with my mistake.

Post Reply