Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Troi File Windows 98 vs. 2000

Featured Replies

My script works on Mac OS X and Win98, but not Win2000. (OS 9 not yet tested.) First I use TrFile-CreateFolder, then I use TrFile-FileSpec To FullPath and end up with a path like this: "C:WINDOWSDesktopIssue 25 Export" and the folder is created on the desktop. This works on Win98 and on 2000, the file path is different, but that's to be expected, and the folder gets created as expected.

The problem comes in the next part of the script:

Set Field [gFile, External ("TrFile-CreateFile", gPath & gName & ".txt")]

Perform Script ["TroiFile Handle error codes"]

1. Why does this script fail on Win2000? If it can create a folder, why not a file?

2. Why doesn't it return an error?

  • Author

Well, duh... never mind. I had remembered that Status(CurrentPlatform) returns 1 if the current platform is the Mac OS 9 and earlier, and -1 if the current platform is Mac OS X, or 2 if the platform is Windows 98 or Windows Me, but I forgot that it's -2 if the platform is Windows NT/2000/XP.

So I had been tacking a colon on the end of my path instead of a backslash. Of course that was the last think I thought to check...

Abs(Status (CurrentPlatform)) returns 2 for any version of Windows.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.