File Types for AppleScript scripts and Automator's workflows
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
File Types for AppleScript scripts and Automator's workflows
I found a very useful and well done web page listing the main File Types you can use in answer file with type command, as you know, the parameter has to have this form: tag|extensions|filetypes
http://revolution.byu.edu/helps/file-creatorcodes.php
Unfortunately I'm searching the file typers for AppleScript's scripts and Automator's workflows, and possibly also for shell scripts files.
Any small or big help will be appreciated.
http://revolution.byu.edu/helps/file-creatorcodes.php
Unfortunately I'm searching the file typers for AppleScript's scripts and Automator's workflows, and possibly also for shell scripts files.
Any small or big help will be appreciated.
Re: File Types for AppleScript scripts and Automator's workf
Hi Mag,
stick to file suffixes, since creator codes are slowly ceasing***
and might not be present anymore in future versions of OS X!
*** Since Snow Leopard actually:
http://appleinsider.com/articles/09/09/ ... eator_code
Best
Klaus
stick to file suffixes, since creator codes are slowly ceasing***
and might not be present anymore in future versions of OS X!
*** Since Snow Leopard actually:
http://appleinsider.com/articles/09/09/ ... eator_code
Best
Klaus
Re: File Types for AppleScript scripts and Automator's workf
Hi Klaus,
interesting, so how can I restrict the Answer File box to display just the AppleScript, Automator and Bash script files?
interesting, so how can I restrict the Answer File box to display just the AppleScript, Automator and Bash script files?
Re: File Types for AppleScript scripts and Automator's workf
Hi Mag,
not sure what the exact suffixes are for these files, but it would be something like this:
...
## just leave the last "item" (= creator code) empty
answer file "Blabla:" with type "Yadda|scpt,workflow,sh|"
...
Tested and works!
Best
Klaus
not sure what the exact suffixes are for these files, but it would be something like this:
...
## just leave the last "item" (= creator code) empty
answer file "Blabla:" with type "Yadda|scpt,workflow,sh|"
...
Tested and works!
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 33
- Joined: Sat Jan 15, 2011 10:57 am
Re: File Types for AppleScript scripts and Automator's workf
Hello Mag
try:
Cheers
Rolf
try:
Code: Select all
on mouseUp
answer files "Select a file:" with type "AppleScript Scripts|scpt|scpt" \
or type "Automator Workflows|workflow|workflow" \
or type "Shell Scripts|command|command" as sheet
end mouseUp
Rolf
Re: File Types for AppleScript scripts and Automator's workf
Hi Rolf,
the AppleScript file worked great. For the other types I will follow the "Klaus Way".
the AppleScript file worked great. For the other types I will follow the "Klaus Way".
Re: File Types for AppleScript scripts and Automator's workf
BTW, is there a way to force the answer file command to show a particular folder path?
Re: File Types for AppleScript scripts and Automator's workf
Hey, come on!Mag wrote:BTW, is there a way to force the answer file command to show a particular folder path?
Dictionary: answer file
answer file[s] prompt [with defaultPath] [titled windowTitle] [as sheet]
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: File Types for AppleScript scripts and Automator's workf
Merci beaucoup, Thierry!
Re: File Types for AppleScript scripts and Automator's workf
What?Klaus wrote:Merci beaucoup, Thierry!
You didn't know the answer?
Regards,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: File Types for AppleScript scripts and Automator's workf
Well, I was more referring to your first sentence
Re: File Types for AppleScript scripts and Automator's workf
Yes, I knowKlaus wrote:Well, I was more referring to your first sentence
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: File Types for AppleScript scripts and Automator's workf
I knew you knew
Re: File Types for AppleScript scripts and Automator's workf
Thierry wrote:Hey, come on!Mag wrote:BTW, is there a way to force the answer file command to show a particular folder path?
Dictionary: answer file
answer file[s] prompt [with defaultPath] [titled windowTitle] [as sheet]
The Dictionary? Where can I find it?
Re: File Types for AppleScript scripts and Automator's workf
Last time I saw it, it was in the HELP menu