1

Consider

enter image description here

Is there a way to make a function justLink that parses a CloudObject[<link>] and returns just the string denoting the link (i.e., removes the CloudObject head?

George
  • 3,145
  • 7
  • 21

1 Answers1

1

Let's have look how is a CloudObject represented internally, using FullForm

FullForm@CloudObject["https://www.wolframcloud.com/objects/28cb3105-23a4-419d-9c26-b7badc8517f6"]
(* CloudObject["https://www.wolframcloud.com/objects/28cb3105-23a4-419d-9c26-b7badc8517f6"] *)

Ok, it's just a head and a string, so using First should suffice.

First@CloudObject["https://www.wolframcloud.com/objects/28cb3105-23a4-419d-9c26-b7badc8517f6"]
(* https://www.wolframcloud.com/objects/28cb3105-23a4-419d-9c26-b7badc8517f6 *)
rhermans
  • 36,518
  • 4
  • 57
  • 149