I expected the behaviour to not be any different from clicking my AmiDock icon that points to the standalone bat file. But, when I do something like:
alias jemacs progs:ami/soft/jasspa/mew_standalone.bat
and run:
jemacs
The initial small window pops up asking me if I want to save the options. If I save the options in the current directory, they no longer pop up, but if I switch directories then they pop up.
Do I need to make a wrapper script to invoke the standalone bat file in the context of the directory containing the standalone bat?
Ideally, I would just create an alias and just run the script.
Regards,
Edited by rjd324 on 2022/6/28 17:22:45
If liberty means anything at all, it means the right to tell people what they do not want to hear. George Orwell.
>Ideally, I would just create an alias and just run the script.
you can't a alias is just a text replcement. but you should investigate RUN command, and the execute command. maybe this 3 commands in combination can do what your asking.
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
The problem is, that normally the start script does not change the current directory. This could be an alternative start script, which sets a fixed directory (change the directory to your needs):
If EXISTS "Cygnix:Software/JASSPA-MEmacs-20091011/mew"
Set PROGPATH Cygnix:Software/JASSPA-MEmacs-20091011/mew
EndIf
Set DEF_XDRIVER "picasso96wb"
Set DEF_WINWIDTH "1024"
Set DEF_WINHEIGHT "768"
Set DEF_WINDEPTH "16"
Set DEF_WINDOWMANAGER "Dynamic Window Manager"
Set DEF_MAXIMIZE 1
PushCD Cygnix:Software/JASSPA-MEmacs-20091011
If EXISTS "Cygnix:myX11SetupLight"
Cygnix:myX11SetupLight
If ${DONOTSTART} EQ "YES"
PopCD
Quit 20
EndIf
Else
Set Cygnix/CYGNIX_SCREEN_MODE ${DEF_XDRIVER}@${DEF_WINWIDTH}x${DEF_WINHEIGHT}x${DEF_WINDEPTH}
Set Cygnix/CYGNIX_DESKTOP_BACKGROUND "none"
Set Cygnix/CYGNIX_WINDOW_MANAGER "Cygnix:CygnixPPC/bin/openbox"
EndIf
Set PROGARGS " "
; Internal settings
Set LAUNCH_SOUND_SERVER 0
Set LAUNCH_WINDOW_MANAGER 1
Set OPENBOX_RC_FILE "openbox-rc.xml"
;Set Cygnix/CYGNIX_QUICK_TRANSFER "1"
GetEnv >NIL: *>NIL: Cygnix/G_FILENAME_ENCODING
If WARN
Set Cygnix/G_FILENAME_ENCODING ISO-8859-1
EndIf
X-5000 PPC 5020/2 GHZ, Fractal Define XL R2-Tower, OS 4.1 final update 2, 4 GB, Radeon HD 7770, ESI Juli@ XTe SAM 460ex/1,15 GHZ, OS 4.1 final, 2 GB, Radeon HD 6450 Amiga 4000D/040 25 Mhz, OS 3.9 BB2, 272 MB, X-Surf, 250 MB ZIP
X-5000 PPC 5020/2 GHZ, Fractal Define XL R2-Tower, OS 4.1 final update 2, 4 GB, Radeon HD 7770, ESI Juli@ XTe SAM 460ex/1,15 GHZ, OS 4.1 final, 2 GB, Radeon HD 6450 Amiga 4000D/040 25 Mhz, OS 3.9 BB2, 272 MB, X-Surf, 250 MB ZIP
It's extension used in MSDOS, for MSDOS scripts, I was going to suggest starting it in DOSBOX, but then i realized it was AmiCynix.
Sometimes people put ".bat" on amiga scripts, you can see it often in Amiga demos scene. I guess it's easier to know its a script, if it has an extension, but its not needed, as you see its script if use LIST command, or if it has a icon.
Maybe we should had used a unique extention for Amiga scripts, how about ".as" for amiga shell or amiga script.
Edited by LiveForIt on 2022/6/28 17:09:56
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Nah. We haven't needed an extension before. Why start now? Plus DOS/Windows will execute a .bat file without you needing to type the extension, but you would have to include the extension to run it from Amiga which is not that helpful really.
Well, if you ask stupid questions, you get stupid answers, as long as people put up with this crap. Just remember there might be time when people don’t answer you when need help. If your going to continue to offend people like that.
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.