|
Re: Is i possible hide AppleScript "do shell script" commands from bash/bash history?
Delvy
Thanks for the followup on that.
my particular application of this is within a Filemaker Pro process - a script which runs this applescript in the background. The user never sees the actual
Delvy
Thanks for the followup on that.
my particular application of this is within a Filemaker Pro process - a script which runs this applescript in the background. The user never sees the actual
|
By
David Wegener laptop
·
#196
·
|
|
Re: Is i possible hide AppleScript "do shell script" commands from bash/bash history?
There is a way around that issue: stop the script from storing its properties and top-level variable values. That means doing something like changing its privileges, code-signing it, or even using a
There is a way around that issue: stop the script from storing its properties and top-level variable values. That means doing something like changing its privileges, code-signing it, or even using a
|
By
Shane Stanley
·
#195
·
|
|
Re: Is i possible hide AppleScript "do shell script" commands from bash/bash history?
Dave, you will not be able to see the command in your Terminal.
do shell script does not use Terminal to send it commands, so it is sheltered from Terminal’s command history.
However,
Dave, you will not be able to see the command in your Terminal.
do shell script does not use Terminal to send it commands, so it is sheltered from Terminal’s command history.
However,
|
By
Deivy Petrescu
·
#194
·
|
|
Is i possible hide AppleScript "do shell script" commands from bash/bash history?
I was recommended to come here, by some knowledgeable folks on a Filemaker Pro forum.
So, I'm using some older versions in an active filemaker solution (FMPA 13, 14, 15), and need to enhance some
I was recommended to come here, by some knowledgeable folks on a Filemaker Pro forum.
So, I'm using some older versions in an active filemaker solution (FMPA 13, 14, 15), and need to enhance some
|
By
David Wegener laptop
·
#193
·
|
|
Re: relative paths etc...
That pretty much fits my definition :)
But thank you. I'll see which of your approach and Yves is easier to fit in my code and will probably come back here for further hints.
In the meanwhile, I
That pretty much fits my definition :)
But thank you. I'll see which of your approach and Yves is easier to fit in my code and will probably come back here for further hints.
In the meanwhile, I
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#192
·
|
|
Re: relative paths etc...
I guess it depends on your definition of weird.
set fullPath to "/path/to/folder/path/from/folder/file"
set rootPath to "/path/to/folder"
set relpath to "." & text ((length of rootPath) + 1) thru -1
I guess it depends on your definition of weird.
set fullPath to "/path/to/folder/path/from/folder/file"
set rootPath to "/path/to/folder"
set relpath to "." & text ((length of rootPath) + 1) thru -1
|
By
Shane Stanley
·
#191
·
|
|
relative paths etc...
I seem to be wasting a lot of time on something that may already exist...
I'm trying to find a way to add/subtract paths to files.
Like, I have a path from / and I want to subtract it from the path
I seem to be wasting a lot of time on something that may already exist...
I'm trying to find a way to add/subtract paths to files.
Like, I have a path from / and I want to subtract it from the path
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#190
·
|
|
Re: Accelerator keys in displayed buttons
Actually, once a control has focus, tapping the space bar will action that control, and once you are used to this, it means you don’t have to move your hand from the keyboard to the mouse nearly as
Actually, once a control has focus, tapping the space bar will action that control, and once you are used to this, it means you don’t have to move your hand from the keyboard to the mouse nearly as
|
By
Peter Gort
·
#189
·
|
|
Re: Accelerator keys in displayed buttons
The main thing it does is destroys the tabbing order. By default, tabbing takes you through the fields of a dialog in a left-to-right/top-to-bottom order, but in more complex dialogs developers often
The main thing it does is destroys the tabbing order. By default, tabbing takes you through the fields of a dialog in a left-to-right/top-to-bottom order, but in more complex dialogs developers often
|
By
Shane Stanley
·
#188
·
|
|
Re: Accelerator keys in displayed buttons
Shane,
Could you elaborate on the side-effects you are referred to?
I haven’t noticed anything.
Robert Poland
iMac, Late 2013, 14,2
3.2 GHz Intel Core I5, 27”
16 GB Ram, 1TB Fusion HD
OS X
Shane,
Could you elaborate on the side-effects you are referred to?
I haven’t noticed anything.
Robert Poland
iMac, Late 2013, 14,2
3.2 GHz Intel Core I5, 27”
16 GB Ram, 1TB Fusion HD
OS X
|
By
Robert Poland
·
#187
·
|
|
Re: Accelerator keys in displayed buttons
Ok.
Thank you!
Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com
Ok.
Thank you!
Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#186
·
|
|
Re: Accelerator keys in displayed buttons
Those I mentioned are just the built-in defaults. Custom shortcuts can be applied to any buttons -- just not using "display dialog" or "display alert".
A simple example is my Dialog Toolkit Plus
Those I mentioned are just the built-in defaults. Custom shortcuts can be applied to any buttons -- just not using "display dialog" or "display alert".
A simple example is my Dialog Toolkit Plus
|
By
Shane Stanley
·
#185
·
|
|
Re: Accelerator keys in displayed buttons
Ok. I'm pretty sure I've seen them in other places too, but I'm fine with your answer.
Return being the default button, right ?
Jean-Christophe
Ok. I'm pretty sure I've seen them in other places too, but I'm fine with your answer.
Return being the default button, right ?
Jean-Christophe
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#184
·
|
|
Re: Accelerator keys in displayed buttons
I suspect you're thinking of "Don't Save". Alerts are hard-wired by default to map escape/command-. to Cancel, return to OK, and command-D to Don't Save:
display alert "Test" buttons {"Cancel",
I suspect you're thinking of "Don't Save". Alerts are hard-wired by default to map escape/command-. to Cancel, return to OK, and command-D to Don't Save:
display alert "Test" buttons {"Cancel",
|
By
Shane Stanley
·
#183
·
|
|
Re: Accelerator keys in displayed buttons
Maybe not all, but some buttons can be accessed by hitting Cmd+the first letter, or something like this. It used to be that a TextEdit dialog reacted to Cmd+D for Delete, but now it is "Change
Maybe not all, but some buttons can be accessed by hitting Cmd+the first letter, or something like this. It used to be that a TextEdit dialog reacted to Cmd+D for Delete, but now it is "Change
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#182
·
|
|
Re: Accelerator keys in displayed buttons
"Normal" Mac dialogs don't show keyboard equivalents.
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
"Normal" Mac dialogs don't show keyboard equivalents.
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
|
By
Shane Stanley
·
#181
·
|
|
Re: Accelerator keys in displayed buttons
Yes, but that's not what there is in normal Mac apps, or am I wrong?
I'd like to have something that acts as normal Mac dialogs. Is that possible?
Jean-Christophe
Yes, but that's not what there is in normal Mac apps, or am I wrong?
I'd like to have something that acts as normal Mac dialogs. Is that possible?
Jean-Christophe
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#180
·
|
|
Re: Accelerator keys in displayed buttons
It will if you go to Preferences -> Keyboard -> Shortcuts and change Full Keyboard Access to All controls. But if you do so, you'll probably also find the side-effects more annoying than it's
It will if you go to Preferences -> Keyboard -> Shortcuts and change Full Keyboard Access to All controls. But if you do so, you'll probably also find the side-effects more annoying than it's
|
By
Shane Stanley
·
#179
·
|
|
Re: Accelerator keys in displayed buttons
Not in 10.13 on my machine. Tab won't change the focus.
Jean-Christophe
Not in 10.13 on my machine. Tab won't change the focus.
Jean-Christophe
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#178
·
|
|
Re: Accelerator keys in displayed buttons
This script works as I said with OS10.13.2.
display dialog "See the pretty buttons!" buttons {"Cancel", "OK", "Some other button"} cancel button "Cancel" default button "OK"
Robert Poland
Fort
This script works as I said with OS10.13.2.
display dialog "See the pretty buttons!" buttons {"Cancel", "OK", "Some other button"} cancel button "Cancel" default button "OK"
Robert Poland
Fort
|
By
Robert Poland
·
#177
·
|