Mac OS 9 Lives

Mac OS 9 Discussion => Software => Topic started by: Protools5LEGuy on February 23, 2015, 03:12:56 PM

Title: AppleScript resetter (was Antares Filter)
Post by: Protools5LEGuy on February 23, 2015, 03:12:56 PM

BTW.My 1000th post!!!!

congratulations !!

This is my 1001th and yours was 1111th!   ;D ;D :o 8) ??? ::) :P -afro-

About deleting those files with a script/applescript...
Anyone have script skills in OS9? If it were MS-DOS it could be a batch (.BAT) file
Code: [Select]
cd c:/TheVolumeSettingsFolder/HFSExtentTables/
del *.*
print "It's done"
exit


In OS9 I only know to put things on startup folder.  :-[

Applescript http://en.wikipedia.org/wiki/AppleScript (http://en.wikipedia.org/wiki/AppleScript)
(http://upload.wikimedia.org/wikipedia/en/9/9e/AppleScript_Editor_Logo.png)
https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html (https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html)

Folder actions on AppleScript http://macscripter.net/viewforum.php?id=53 (http://macscripter.net/viewforum.php?id=53)

Quote
What types of actions can a Folder Action respond to?
A Folder Action can be configured to execute whenever a folder is opened, closed, or moved.  In addition, Folder Actions can be configured to trigger when items are placed in, or removed from a folder.
You can see the syntax in the Standard Additions dictionary, under the Folder Actions Suite.

AppleScript 1.7 for Mac OS 9 and Classic: Release Notes
http://support.apple.com/kb/TA26821?viewlocale=en_US (http://support.apple.com/kb/TA26821?viewlocale=en_US)
https://www-s.acm.illinois.edu/iCal/workshops/applescript/1999/special/os9.html (https://www-s.acm.illinois.edu/iCal/workshops/applescript/1999/special/os9.html)
https://books.google.es/books?id=zQy4mgqIccsC&pg=PT383&lpg=PT383&dq=applescript+OS9&source=bl&ots=se9YvQYKSW&sig=NXVh82s-Q3jh-95GWZq0SXH0fqU&hl=es&sa=X&ei=4MXrVKLmG4n7UqzAgvgL&ved=0CGIQ6AEwBw#v=onepage&q=applescript%20OS9&f=false (https://books.google.es/books?id=zQy4mgqIccsC&pg=PT383&lpg=PT383&dq=applescript+OS9&source=bl&ots=se9YvQYKSW&sig=NXVh82s-Q3jh-95GWZq0SXH0fqU&hl=es&sa=X&ei=4MXrVKLmG4n7UqzAgvgL&ved=0CGIQ6AEwBw#v=onepage&q=applescript%20OS9&f=false)



Title: Re: Re: Antares Filter
Post by: supernova777 on February 24, 2015, 02:25:19 AM
what do u want to delete with an applescript?
u just want to delete all files from
: TheVolumeSettingsFolder : HFSExtentTables ?

Quote
For Alias and file specifiers, the path is an HFS path, which takes the form
Code: [Select]
"disk:item:subitem:subsubitem:...:item"

for example,
Code: [Select]
"Hard_Disk:Applications:Mail.app"is the HFS path to the mail application, assuming your boot drive is named "Hard_Disk" -- https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/AppleScriptLanguageGuide.pdf

i would imagine its simple like:
Code: [Select]
tell application "Finder"
    move "Hard_Disk:Folder:Filename.ext" to trash
    empty the trash --(optional)
    display dialog "It's Done"
end tell
Title: Re: Re: Antares Filter
Post by: supernova777 on February 24, 2015, 02:53:30 AM
heres a wrox book from 2005
Title: Re: Re: Antares Filter
Post by: Protools5LEGuy on February 24, 2015, 09:22:01 AM
what do u want to delete with an applescript?
u just want to delete all files from
: TheVolumeSettingsFolder : HFSExtentTables ?



i would imagine its simple like:
Code: [Select]
tell application "Finder"
    move ": TheVolumeSettingsFolder : HFSExtentTables" to trash
    empty the trash --(optional)
    display dialog "It's Done"
end tell
Maybe as this   ::)    ???  I modded your code to have better paths...

I still have no clear if the folder has to be deleted or the inside files...

I think that are the inside long-name files.
Title: Re: AppleScript resetter (was Antares Filter)
Post by: supernova777 on February 24, 2015, 09:36:50 AM
u need to use an english translator dude.. i think your english is getting worse  :'(
Title: Re: AppleScript resetter (was Antares Filter)
Post by: Protools5LEGuy on February 24, 2015, 09:50:10 AM
u need to use an english translator dude.. i think your english is getting worse  :'(
You posted a code with wrong paths. When I quoted your, I changed paths to  move ": TheVolumeSettingsFolder : HFSExtentTables" to trash

I think your code deletes the hfsextend folder instead of the files inside that folder.

To have it clear for everybody. We want to reset the demos of Antares Kantos, filter, tube, infinity and maybe another. Also Sony Oxford and Waves 4.

Those files from : TheVolumeSettingsFolder : HFSExtentTables has to be deleted + rebuild the desktop

We want an applescript to delete what is inside : TheVolumeSettingsFolder : HFSExtentTables, not the folder itself. Maybe I am wrong. MacTron will put some light on it if I am wrong, I guess
Title: Re: AppleScript resetter (was Antares Filter)
Post by: MacTron on February 24, 2015, 10:57:05 AM
We want an applescript to delete what is inside : TheVolumeSettingsFolder : HFSExtentTables, not the folder itself. Maybe I am wrong. MacTron will put some light on it if I am wrong, I guess

Both options give us to the same result. But, deleting "HFSExtentTables" folder it is easiest than deleting the folder content.