Jump to content

Variables with POSIX


Recommended Posts

Hello folks 👋,

 

I am trying to transform a path into POSIX into a workflow using using variables and AppleScript. Unfortunately it seems that some characters are transformed in the process making the path name false sometimes. Here's an example :

 

My workflow

image.thumb.png.84bdfc7370de8d1ee3d93241796f77bc.png

 

The variable

image.thumb.png.2af5e9458112a13b24a0c111be037664.png

 

The script (AppleScript) :

set sourceFolder to POSIX file (system attribute "_sourceFolder")

set theDialogText to "Original folder path" & return & (system attribute "_sourceFolder") & return & return & "POSIX folder path" & return & sourceFolder

display dialog theDialogText

 

The output

image.png.57469df6eeb5548dfbe18a59cfad941f.png

 

The Large Text output (working = expectation !!)

image.thumb.png.a3ac497103220560c3575eeb334b28f5.png

 

Large text code = {var:_sourceFolder}

 

I'd would expect that {var:_sourceFolder} and (system attribute "_sourceFolder") returns the same result in this situation. Any help would be super appreciated ! Many thanks in advance 🙏

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...